=== start {clear} Welcome to Ivy, a markup language for writing interactive fiction. Run the [Test](+test). Try a simple example interactive [story](+example_story). === embed_test_node This is the content of a node called 'embed_test_node' === test *Embed another node:* {embed embed_test_node} *Check evaluated conditional:* {set cond 44} {if (1 < cond)} Evaluated condition was **true** {else} Evaluated condition was **false** {endif} *Check conditional - if, elif, else:* {setflag turnip } {setflag potato} {unset rabbit} {if turnip} turnip was true {elif potato} potato was true {elif !rabbit} there is no rabbit {else} Fallback else - potato and turnip are both false... {endif} {var foo} {set foo 10} {set bar 444} {add bar 30} {sub bar 10} *Test alt text:* This is a very {alt short|boring|precise|mysterious|shifty} sentence. This is a very {alt short|boring|precise|mysterious|shifty} sentence. This is a very {alt short|boring|precise|mysterious|shifty} sentence. This is a very {alt short|boring|precise|mysterious|shifty} sentence. This is a very {alt short|boring|precise|mysterious|shifty} sentence. *Test link:* [Try a test link](link) [Here is a fallback link](~link) *Call a bound javascript function:* {func testfunc(11, 22, 33)} {if (flagName > 1)} {endif} === link Here we are in another section. [Go back](+start) === example_story {clear} There are two doors. The [red door](+red_door) is rusted, and hot to the touch. The [blue door](+blue_door) is cool, and coated with condensation. === red_door {clear} As the red door opens, a blast of hot air pours through, and orange light floods the hallway. {embed question} === blue_door {clear} A freezing mist flows out into the hall, and frost immediately begins to form on the floor and the walls. {embed question} === question A voice booms out from the beyond the door. "Are you [friend](+friend) or [foe](+foe)?" === friend {clear} You step through the door and are greeted into the largest and most extravagant celebration in the world. You are swept up by the revels and vanish into a realm of pure jollity. [The End](~start) === foe {clear} A powerful force descends from above, and you find yourself instantly teleported into the most dismal and obscure oubliette in the underworld. There is no way out. You will be trapped for all eternity. [The End](~start)