QueScript / Reference / <var>¶
<var> has ALWAYS to be the first node inside a <script> or <que> node
Simple Example¶
assign an array to a variable:
reference a expression to a variable:
Attributes¶
- name = name of a variable inside the scope of the node
Explained¶
<var> instantiates a variable and either * evaluates the {expr} and sets the result as its value * sets the reference to the {expr} as its value
setting a reference to a variable will execute the expression each time the variable is used further along the code and returns the result of its evaluation. In a sense it is a definition of a function call that can be referenced by the variable.