Skip to content
David Moreno Montero edited this page May 22, 2013 · 2 revisions

Guards are simple LUA expressions that control if the chain execution must continue using that path. If the guard does not comply this path will not be taken. The format is:

Comment [guard code]

For example:

[ _.out == "Exit" ]

Or:

User says exit [ _.out == "Exit" ]

If there are several paths that comply with the guard, a random one will be taken.

From the guards user can access all the nodes and its attributes, as described at Accessing to nodes and attributes.

Clone this wiki locally