HALT
Will render a template without any external symbols and terminate execution immediately.
LOAD foo 1 CATCH bar 8 1 MOVE baz
If loading the external symbol foo
sets the flag 8
, then immediately move to bar
.
Otherwise, move to baz
.
LOAD foo 0 MNEXT to_fwd 11 MPREV to_back 22 HALT INCMP > 11 INCMP < 22
Load external symbol foo
as a sink.
If content spans multiple pages, resolve to_fwd
and to_back
as labels for lateral navigation options in the menu.
Also handle the lateral navigation inputs.
LOAD foo 0 NEXT 11 to_fwd PREVIOUS 22 to_back
This example produces exactly the same bytecode result as the previous example.
MOUT to_foo 0 HALT INCMP foo 0 INCMP bar *
If input is 0
, route to the foo
. Any other input will route to the bar
node.
LOAD msg 0 HALT
Execution will stop (without error) and the node template render will be displayed. Any content returned from the execution of the msg
symbol will be appended to the render. Lastly the MOVE ^
will be appended automatically to the state bytecode.