If
| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The value that will be passed to the predicate. |
|
Any |
Output ➡️ |
|
The input of the shard if Passthrough is true; otherwise, the output of the action that was performed (i.e. Then or Else). |
|
Any |
Predicate |
No |
The predicate to evaluate in order to trigger Then (when true) or Else (when false). |
none |
Shard[Shard]None |
Then |
No |
The shards to activate when Predicate is true. |
none |
Shard[Shard]None |
Else |
No |
The shards to activate when Predicate is false. |
none |
Shard[Shard]None |
Passthrough |
No |
The output of this shard will be its input. |
false |
Bool |
Evaluates a predicate and executes an action.
Examples
| 5
If(
Predicate: IsLess(2) Then: {
Msg("input is lesser than 2")
} Else:
Msg("input is equal or greater than 2")
)
|