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(
{IsLess(2)}
{Msg("lesser than 2")}
{Msg("equal or greater than 2")}
)
|
[info] [sample-wire] equal or greater than 2