Skip to content

"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.



Twee Code#

:: StoryTitle
Conditional Statements in Chapbook

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

Twee Download

See Also#

Setting and Showing Variables