switch
This block is part of the array group and was last modified in core v10.4.28.
switch v10.4.28 returns an array based of the given expression.
In pins 2
- expression required
valueThe expression to evaluate.
- default
arrayThe default statement to be executed.
Out pins 2
- output
arrayReturns the array matching the expression.
- match
conditionReturns true in case a match was found.
Evaluates the expression against the configured cases and outputs the array wired to the matching case, with matched=true. When no case matches, the default pin's array is output with matched=FALSE - matched reports a non-default hit, not whether an output exists. With no match and no default, array is null and matched is false.
Version history
Introduced in v10.4.28.
Back to
array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group

