switch
This block is part of the query group and was last modified in core v12.0.4.
Connection Type
This block connects from a query type block. Make sure to connect this block to the appropriate left-hand side connection.
switch v12.0.4 Returns a query based of the given expression.
- expression required
valueThe expression to evaluate.
- default
queryThe default statement to be executed.
- output
queryReturns the query matching the expression.
- match
conditionReturns true in case a match was found.
Outputs the query pin whose case the expression value matched (pre-selected by the flow engine), or the default pin when nothing matched; matched is true unless the default pin was selected. A falsy selected value becomes nil, and with no inputs at all the output is query=nil, matched=false.
A typical wiring for switch: the query out pin feeds cast to object.
Version history
Introduced in v12.0.4.
Back to
query Return to the main group to view all sub-groups Back to query Return to the group to view all blocks within this group 