"Conditional Statements": Chapbook (v1.0.0)

Summary

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!
[else]
It's a horse!
[continue]

Download: Twee Code

See Also

Setting and Showing Variables

results matching ""

    No results matching ""