If-Else demo
<<set $hasKey = false>>
[[Start game->Central corridor]]You are in a dark corridor in a haunted house.
[[Go west->Western corridor]]
[[Go east->Eastern corridor]]You are in another corridor, this one lit up by old oil lanterns. The only door is back to where you came from.
<<if not $hasKey>>
In the lamplight, you see a [[key->Pick up key]] on the ground.
<</if>>
[[Go east->Central corridor]] You are in a dark room, with a door in front of you.
<<if $hasKey>>
You could try [[unlocking->Unlock door]] it with your key?
<<else>>
You could try [[opening->Try door]] it?
<</if>>
[[Go west->Central corridor]]You pick up the key and put it in your pocket.
<<set $hasKey = true>>
[[Continue->Western corridor]] The door won't budge.
[[Continue->Eastern corridor]]You try to unlock the door with the key you found. It doesn't turn at first, then unlocks the door with a satisfying click. It swings open, and bright sunlight fills the space.
You win!