Space TimelineSpace Timeline

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

Operator

Description

Example

>

greater than



<

less than



>=

greater than or equal

Number of selected items is larger or equal to 2:

startingPointData.myMultiSelect.length >= 2

<=

less than or equal



==

is equal

First selected item is ‘one’ (array index starts from 0)

startingPointData.myMultiSelect[0] == 'one'

Second selected item is ‘two’

startingPointData.myMultiSelect[1] == 'two'

!=

not equal

Item 'b' was selected:

startingPointData.myMultiSelect.indexOf('b') != -1

Logical operations can be used to combine results of comparison operations (and other logical operations):

Operator

Description

Example

Operator

Description

Example

&&

logical AND

startingPointData.myNumber < 10 && startingPointData.myNumber != 3

||

logical OR

startingPointData.myText != '' || startingPointData.myAnotherNumber == 0

'' (or "")

empty string. Empty text or paragraph inputs will have such value.