Enabling Advanced logic allows you to write custom boolean expressions using MongoDB’s query and projection operators, 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.
Why JSON, not Drag-and-Drop?
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
Common patterns
Both conditions must be true — $and
Enable an item only if both conditions are satisfied: