Conditions can be inserted into action flows in order to stop the execution if a condition is not met (raising a warning dialog), or to exclude parts of the sequence from executing based on condition expression. The expression can be a complex string to be passed to the JavaScript eval() function. When writing condition expressions, make sure you put string values into single or double quotes. For example, ‘${s1_i1}’, ‘abc’, ‘1’, as opposed to numbers or logical values, which must be written without the quotes (${s1_i1}, 1234, 0, 1, etc.).

Condition

This element can be placed anywhere within an action flow. If the result of the condition expression is false, the action flow execution will stop on the original screen and the warning message is shown to the user.

Condition_Block

This element can be placed anywhere within an action flow. If the result of the condition expression is false, all the child action elements enclosed by this condition block will be skipped (there is no warning message shown to the user).

Examples of condition expressions:

  • ${s1_i1} > 1  Converts the left side to a number and compares it to 1
  • ‘${s1_i1}’ == ‘1’  Compares two string values
  • ‘${s2_i1}’ != ”  The text input field must not be empty
  • ${s3_t1[ID]} > 0  The table column ‘ID’ in the selected table row of the table element s3_t1 (screen 3, table 1) must be greater than 0
  • (‘${s1_i1}’ == ‘YES’ && ${s1_i2} > 0) || ${s1_ch1} == 1  String in the text input s1_i1 must be equal to ‘YES’ and the text field s1_i2 must contain a value greater than 0, or the checkbox s1_ch1 must be checked.
Skip to toolbar