This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
QS1 var cmd
maybites edited this page Nov 15, 2021
·
3 revisions
home/reference v1.x/<var>
<var> has ALWAYS to be the first node inside a <script> or <que> node
assign an array to a variable:
<var name="variablename">{ARRAY(0,0,0)}</var>
reference a expression to a variable:
<var name="variablename">{-> ARRAY(COS(alpha),sin(alpha),2)}</var>
- name = name of a variable inside the scope of the node
<var> instantiates a variable and either
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.
(c) by Martin Froehlich maybites