Advanced logic
Last updated
Was this helpful?
Last updated
Was this helpful?
Enabling Advanced logic allows you to write custom boolean expressions using , giving you full flexibility over conditional rendering in your flow.
Instead of using a visual logic builder, you write logic directly in JSON format. Each answer variable maps to a field, and standard MongoDB query operators evaluate those fields.
While we may support a visual builder in the future, the JSON-based syntax is:
Powerful and expressive
Lightweight and easy to copy/paste
Flexible enough for most complex logic needs
$and
Enable an item only if both conditions are satisfied:
distance_to_office
is less than or equal to 75
is_qualified
is true
Enable an item if either of the following is true:
is_parent
is true
has_parent_consent
is true
$in
Check if an answer matches any value from a list.
Enable if country
is CA, MX, or US:
$nin
Check that an answer does not match any value from a list.
Enable if state
is not NY or PA:
$exists
Enable if a variable has any value (even false
):
This mirrors the behavior of the Is defined simple logic operator.
Read more about .
Read more about .
Read more about .
Read more about .
Read more about .