recital / exporters / ink / test / expected / divert-variables.ink
divert-variables.ink
Raw
-> _recital_id_0000
=== _recital_id_0000 ===
Testing variable diverts.
VAR divertVariable = -> divert_knot

VAR x = 0
 -> divertVariable

=== divert_knot ===
This is the diverted knot.
{
- x > 1:
 -> divert_1

- x == 0:
~ divertVariable = -> divert_2

 -> divertVariable

- else:
 -> END

}
=== divert_1 ===
 -> END

=== divert_2 ===
The second divert.
 -> END