Flows

Flows refer to definition structures that control the flow of execution - conditions, loops, tree-traversals, and others. Flows start with {[ and end with ]} tags respectively, and must be closed with {[/]}:

{[ for name in names ]}
- {{ name }}
{[/]}

Some flows change or enhance data inside the blocks they define. In the example above, the value of the property name will always be different with each pass of the loop. When running with appropriate data (names = [primary, secondary, ternary]), the output will look like this:

- primary
- secondary
- ternary

Shorthand syntax

In some cases, the flow doesn't form a block - that is, it doesn't have a body that it can execute. One such example would be a variable definition:

{[ const numberOfPeople = 10 /]}

In this case, you can use shorthand flow syntax to immediately close the flow without a body. You can close any flow using the shorthand syntax, indicating that you are not interested in the body at all.

Available Control Flows

Condition flows

Loops

Variables

Manipulating and using blueprints

Debugging

Last updated