The Control Structure: IfDefinitionA control structure If is an item which implements alternative. The result of a boolean expression determines the index of the output slot between two. If the value is true then the first output is used, otherwise the second. PropertiesParametersThis items has two parameters named respectively:
Alternative is related to the following instruction: if (test between $0 and $1) do then copy input into output 0; else copy input into output 1; Test ExpressionThe test is a boolean expression built with conjunction, disjunctions or negation connectors between constants or values of the two parameters. More complex expressions should be formulated with the eval item. Regular boolean expressions must be built with:
and the logical connectors:
Example of valid test($0>3.0) | ($1<=5) Result valueThe item execution returns the validated output index: 0 or 1. See alsoGo to the reference manual |