"Conditional Statements": Chapbook (v1.0.0)


The [if condition] and [else] modifiers found in the Conditional Display section of the Chapbook guide can be used to conditionally display content based on the current value of a variable.

Live Example

Download: Live Example

Twee Code

:: StoryTitle
Conditional Statements in Chapbook

:: Start
animal: "horse"
[if animal === "dog"]
It's a dog!
It's a horse!

Download: Twee Code

See Also

Setting and Showing Variables

results matching ""

    No results matching ""