Const¶
| Name | Mandatory | Description | Default | Type |
|---|---|---|---|---|
⬅️ Input |
Any input is ignored. | None |
||
Output ➡️ |
The declared constant value. | Any |
||
Value |
No | The constant value to insert in the wire. | none |
Any |
Declares an un-named constant value (of any data type).
Details¶
To create named constants see Ref.
You can even skip this shard and pass the constant value directly but internally it will be translated to a Const shard that outputs this constant value.
Examples¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |
[info] [sample-wire] 8
[info] [sample-wire] 8
[info] [sample-wire] Hello World!
[info] [sample-wire] [A B C]
[info] [sample-wire] @f4(1 2 3 4)
[info] [sample-wire] {key1: 10 key2: 20}
[info] [sample-wire] none