![Gordius TinyBox Скачать руководство пользователя страница 58](http://html1.mh-extra.com/html/gordius/tinybox/tinybox_user-manual_2244906058.webp)
57
5.8.
Conditional commands
SYNTAX :
You can make your setup very “dynamic” by having the same preset select a different sound or activate
a different effect, depending on some condition. Data variables are used to set those conditions, and
the conditional commands above are used to make the necessary decisions.
The ‘while’ statement can be used to create loops, for instance in order to do a fade-in/fade-out effect
(see “Example 5” in a previous chapter for an example of this)
Of course the while statement needs to be used with care, making sure that you don’t create an infinite
loop in your setup. This would make the unit unresponsive.
if (
condition*
) {
…
}
else if (
condition*
) {
…
}
else {
…
}
while(
condition
*) {
…
}
* condition : $intvarname
[ > >= == != <= < ] [0…127]
$intvarname
[ > >= == != <= < ]
$intvarname2
$stringvarname
[ == != ]
“any string”
$boolvarname
[ == != ]
$boolvarname2
$boolvarname
!$boolvarname
switch(&intvarname) { switch(&stringvarname) {
case[0…127]: case ”any string”:
… …
break break
… …
default: default:
… …
break break
}
Содержание TinyBox
Страница 1: ...THE TINYBOX User Manual v 1 4...