Conditionals
A Conditional is an action that checks your variables the moment it fires and runs different actions depending on what it finds. Branch to a win or lose scene based on the final score, show a badge only when lives remain, or send high scorers to a bonus scene, all from a single action.
Conditionals are the branching side of the progression system. Where triggers watch a variable continuously and react the instant a condition is met, a Conditional evaluates once, at the moment its action fires: at the end of a scene, on a tap, when a video finishes. Logic is built as IF, ELSE IF, and ELSE chains from your project's variables.
Adding a Conditional
Select Conditional in the action selector, directly below Update Progression. The properties popup then shows two controls:
Configure opens the full screen Conditional Properties modal, where you build your logic.
Go to Progression closes the popup and jumps to the Progression section in project settings, so you can review or add variables without losing your place.
The Conditional Properties Modal
Clicking Configure opens a dedicated full screen workspace. Your logic blocks live on the canvas, and the Available Variables panel on the right lists everything they can reference. Zoom and undo controls sit at the top right of the canvas: zoom works just like the editor viewport's zoom controls, and undo history lasts for the current session.
Nothing is committed until you're done. Confirm saves your changes to the Conditional action and closes the modal, while X closes without saving and discards them.
Available Variables
The panel on the right groups the variables your conditions can reference:
Scene lists Scene Duration, Global Timer and Inactivity Timer.
Progression lists every variable from your project's Variables tab, and stays in sync with it.
Game appears only when the scene contains a Game Mechanic layer. The section is titled with the game's name and lists that game's variables.
Code layers each get a section titled with the layer's name, including code layers inside groups. The selected variable shows its layer name too, so two layers' Score variables stay distinguishable.
Each row shows the variable's name and its starting value, not its live value during play.
Inactivity Timer reads elapsed idle seconds from the scene's enabled timer. It starts at 0, resets to 0 on input, stays at 0 while a pointer is held, and stops increasing at the timer's duration. It keeps counting while the scene is paused. A scene without an active timer reads 0; selecting the variable does not enable the timer. A tap-triggered Conditional sees the reset value, not the idle time before the tap.
Like other conditions, this input is checked only when the Conditional action runs. To branch when the inactivity timer expires, use a Conditional as the timer's action. Adding a condition alone does not create an automatic trigger.
Building a Block
A block is a chain of tiles that reads top to bottom: one IF tile, any number of ELSE IF tiles, and an optional ELSE at the bottom.
The IF Tile
Every block starts with an IF tile, and the modal places one on the canvas for you the first time it opens. A tile reads like a sentence: IF the conditions are true, THEN run the actions.
The condition row pairs a variable with an operator and a value, like Score >= 100. The variable selector lists everything in the Available Variables panel.
The + below the conditions adds another row, joined to the ones above by an AND/OR dropdown. Added rows can be removed with their minus button; every tile keeps at least its first row.
The THEN section holds the actions that run when the conditions pass. The action selector opens the platform-wide action list, so anything an interaction can do, a Conditional can do. The + adds more actions, each removable with its minus button.
Numeric thresholds accept positive and negative values with up to two decimal places, including fractional seconds for timer conditions.
There are six operators:
>=
The variable is greater than or equal to the value
>
The variable is greater than the value
<=
The variable is less than or equal to the value
<
The variable is less than the value
=
The variable is exactly equal to the value
!=
The variable is anything other than the value
ELSE IF and ELSE
ELSE IF + below the last tile in a block adds a branch that's only checked when the tiles above it fail. ELSE IF tiles match the IF tile's structure and behavior, and as many can stack as you need, each connected by a dotted line.
The caret on an ELSE IF tile's header offers ELSE, the fallback branch that runs when nothing above it passes. Converting removes the tile's condition section but keeps any configured actions. The ELSE is always the bottommost tile, and each block can only have one.
Removing an ELSE IF or ELSE removes just that tile. Removing the IF tile removes the entire block, including everything below it.
Multiple Blocks
The IF + button at the top right of the canvas adds a new, independent block. Each block is its own chain, so unrelated pieces of logic don't have to share one.
How Conditionals Evaluate
When the Conditional action fires:
Blocks evaluate independently, left to right in canvas order. Every block whose conditions pass fires its actions; blocks are not exclusive with each other.
Within a block, only one branch ever fires. If the IF passes, its actions run and the rest of the block is skipped. If it fails, ELSE IF tiles are checked top to bottom and the first one that passes runs. If nothing passes, the ELSE runs. With no ELSE and nothing true, the block does nothing.
AND binds tighter than OR. Consecutive AND conditions group first, then OR evaluates across the groups: A AND B OR C AND D reads as (A AND B) OR (C AND D).
Multiple actions in one THEN fire in order, top to bottom.
Common Patterns
Score based branching: at the end of a game scene, IF Score <= 33 starts the low score scene, ELSE IF Score <= 66 starts the mid score scene, ELSE starts the high score scene. Since branches evaluate top down, the middle branch doesn't need a lower bound.
Win gate with two requirements: IF Score >= 100 AND Health > 0 starts the win scene, ELSE starts the fail scene. Both conditions have to pass.
Independent outcomes: one block shows a badge layer IF Score >= 50, while a second block navigates IF Health > 0. When both pass, both fire.
Last updated