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
QS0 if cmd
maybites edited this page Oct 23, 2021
·
1 revision
home/reference v0.x/<if>
<if true="{expr}">
<while name="whileLoop" init="{:whilevar = 0}" condition="{whilevar lt 100}" next="{whilevar = (whilevar + 1)}">
<if true="{whilevar lt 50}">
<print>inside while below 50: {whilevar}</print>
<else>
<print>inside while above 50: {whilevar}</print>
</else>
</if>
</while>
<wait anim="whileLoop"/>
- true = its {expr} has to be true (>= 1) to execute the content, otherwise <else> is called, if it exists
- false = its {expr} has to be false (0) to execute the content, otherwise <else> is called, if it exists
- <else>
- <expr>
- <print>
- <send>
- <osc>
- <out>
- <trigger>
- <if>
- <while>
- <anim>
- <play>
- <stop>
- <pause>
- <resume>
- <shutdown>
- <debugger>
the <if> cmd works like 'if' in classical langauges
(c) by Martin Froehlich maybites