Operators
<< Click to Display Table of Contents >> Navigation: Reference > Operators |
Boolean operators
GPScript includes the usual Boolean operators but has some interesting additions to make scripting a little easier for users.
in
The in operator allows the left hand side, normally an integer or a floating point number to be tested against an integer or floating point respectively range. So you can write:
if n in [C3..C4] then
The variable n would normally be an integer type. However, this will also work if n is a NoteMessage or a ControlChangeMessage and in these cases the note number or controller number will be used.