Swap¶
| Name | Mandatory | Description | Default | Type |
|---|---|---|---|---|
⬅️ Input |
Input is ignored. | Any |
||
Output ➡️ |
The input to this shard is passed through as its output. | Any |
||
First |
No | The name of first variable. | none |
Var(Any) |
Second |
No | The name of second variable. | none |
Var(Any) |
Swaps the values of the two variables passed to it via First and Second parameters.
Details¶
This shard is type sensitive and can only swap the values of variables with similar types.
Examples¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
[info] [sample-wire] number1: 456
[info] [sample-wire] number2: 123
[info] [sample-wire] string: {k1: 1 k2: 2}
[info] [sample-wire] table: Shards
[info] [sample-wire] number3: [10 20]
[info] [sample-wire] sequence: 789