Properties
A human-readable name for the component.
Select:
- Simple: uses the Condition and Combine Conditions properties to define an expression.
- Advanced: provides a code editor to write your own JavaScript expression.
A JavaScript expression, which will be evaluated to determine whether it is true or false. If the expression is not itself a true or false value, then any non-empty string is considered true, as is any non-zero number.Only used if Mode is set to You can then use this in an If component to determine the flow, such as checking if there are any new orders and directing the flow accordingly.
Advanced.To use variables in this field, type the name of the variable prefixed by the dollar symbol and surrounded by { } brackets, as follows: ${variable}. Once you type ${, a drop-down list of autocompleted suggested variables will appear. This list updates as you type; for example, if you type ${date, functions and variables containing date will be listed.Example
If you have a grid variablenew_orders with columns order_id, customer_id, and order_value, and you want to perform actions based on the number of orders, you can use:Click + to add a condition. Any number of conditions can be added; the Combine Conditions property will define how they work together.For each condition, enter the following:This example will check if the value in the first row of
- Input Variable: The variable to use in the comparison. If the input variable is null, it will be considered blank.
- Qualifier: Select Is or Not. Not reverses the meaning of the comparator; for example, changing an “Equals” to a “Does Not Equal” expression.
- Comparator: Select the comparison operator.
- Value: Most commonly a constant value, but can also be a variable reference or expression. The value is parsed according to the type of the input variable.
Simple.Example
The condition in Simple mode allows users to define conditions using input variables, comparators, and values. Multiple conditions can be combined using the Combine Conditions property to evaluate whether an expression is true or false.If you have a variablegv_test1 containing a grid with columns col_1, col_2, and col_3, you would need to reference the column and row as follows to check the value in the first row of col_1:col_1 is equal to "b". In Simple mode, you don’t need to use ${} syntax as in Advanced mode, since you’re directly comparing values.Use the defined conditions in combination with one another according to either “And” or “Or”. Only used if Mode is set to
Simple.
