Logical operator reference

Operators useful for logic on single answers.

Please be sure to reference the parent section conditions and logic for use of the following operators.

Currently, the following logical operators are supported:

Equals

The answer exactly equals the value.

Does not equal

The referenced answer does NOT equal the value.

Note that this also is true whenever the answer is not defined (has not been collected yet).

Greater than

The referenced answer is greater than but not equal to the value.

Only available for number-type answers.

Less than

The referenced answer is less than but not equal to the value.

Only available for number-type answers.

Matches regular expression

The referenced answer matches the regular expression pattern.

Does not match regular expression

The referenced answer does not match the regular expression pattern.

Is defined on load

The referenced answer was set in the URL, a POST, or otherwise present when the form was first loaded.

Useful for skipping questions that you provided answers for upfront, and you do not want users to confirm or edit.

Is defined

The referenced answer has any value set, even false.

This is particularly useful for hiding parts of a step that you don't want to show unless an answer is provided.

Is not defined

The referenced answer has not been set.

Had a loading error

The referenced answer is calculated dynamically or loaded from an API, and there was a problem when determining its value.

Last updated