Virtual Choreographer Reference Guide (version 1.4) | ||
---|---|---|
Prev | Chapter 4. VC Macro-Commands, parameters, and variables | Next |
<test> ‐ A macro command for parameter value test
Through the test macro-command, the macro-expansion of the embedded source code depends on the value of the parameters instantiated by other macro-commands such as repeat or set.
One of the following elements must occur in test element: node or use.
In the following example, the code in the scope of the <test> mark will only be expanded if the parameter n is not equal to 3:
<test operator="ifnotequal" id="n" value="3"> <node id="station_{#n}"> <use xlink:href="train1.xml:#node train #1" /> </node> </test>