Creating & Publishing
Flags and conditional logic
Conditional logic lets an interactive story remember earlier decisions and use them to control later routes or passages.
On this page
Summary
Conditional logic lets an interactive story remember earlier decisions and use them to control later routes or passages.
Steps
- Define only the flags or conditions needed for a later story consequence, and use names that explain their meaning.
- Set or update a value through the editor’s supported choice or scene logic control.
- Add a condition to the later choice or passage, then check that both the true and false routes behave as intended.
- Run Preview from the start state and from a state that satisfies the condition so you test both outcomes.
What to expect
- Flags are part of a story’s route state; they are not analytics fields or personal data collected for discovery ranking.
- A condition that is never set can hide a branch, while contradictory conditions can create a dead end.
- Keep logic small enough to trace in Map and Playtest, especially when multiple choices update the same value.
Troubleshooting
- If a conditional option never appears, check spelling, capitalization, the expected value, and the passage where it is set.
- If a branch appears too early, review whether its condition is missing or evaluated before the value changes.
- When a route behaves differently than expected, test one condition at a time and send Creator Support the minimal reproduction path.