Documentation / PATH Studio

Variables and conditions

Available now

Declare run variables, build “Available when” conditions and add ordered effects, without writing JSON.

On this page

Variables

Choose Project / variables in the Inspector. Enter a New variable ID and choose + Add boolean variable, + Add numeric variable or + Add string variable. Set its Initial value. Run variables reset on a new run; returning to a historical decision restores their earlier values.

Available when

  • Combine conditions with all, any and not.
  • Selected choices, visited sections or endings, variable equality and persistent discoveries.
  • Numeric comparison (this run) chooses a numeric variable, Comparison (>, ≥, < or ≤) and Compare to threshold. It requires a 1.2.0 story.
  • When unavailable is Hidden (omitted), Locked (visible label, disabled) or Mystery (shown as “Undiscovered,” disabled).

Effects

On a Decision’s choice, On choosing this option can + Set run variable, + Add to numeric variable or + Persistent discovery. The Add (negative subtracts) value accumulates on each confirmed choice in effect order; a Router can compare the resulting score. add requires a numeric variable and story 1.2.0. Discoveries persist across runs and rewinds in local storage for this story and format major version, when storage is available; they do not sync between devices.

Try scores and Routers · Conditions reference.

Back to all documentation