JavaScript Operators Used for Boolean Expressions
Some settings fields take Boolean values, i.e. the result of the evaluated expression must be either TRUE or FALSE. Such are usually settings for conditions (enabled, disabled, read-only, visibility, navigation panel visibility, etc.) and rules (validation, page transition, etc.).
For Multiple Value Form Dropdown field you can use JavaScript array API. See examples in the table below.
Comparison operations can be used on numbers (and strings, which are converted to numbers automatically):
Operator | Description | Example |
---|---|---|
| greater than | |
| less than | |
| greater than or equal | Number of selected items is larger or equal to 2:
|
| less than or equal | |
| is equal | First selected item is ‘one’ (array index starts from 0)
Second selected item is ‘two’
|
| not equal | Item 'b' was selected:
|
Logical operations can be used to combine results of comparison operations (and other logical operations):
Operator | Description | Example |
---|---|---|
| logical AND |
|
| logical OR |
|
| empty string. Empty text or paragraph inputs will have such value. |