The Lemur User Manual
91
1 && 0 = 0
a<b 1 if a < b
0 otherwise
a>b 1 if a>b
0 otherwise
a==b 1 if a==b
0 otherwise
a>=b 1 if a>=b
0 otherwise
a<=b 1 if a<=b
0 otherwise
a || b : logical OR
1 || 0 = 1
1 || 1 = 1
a?b:c This one is a conditional statement. It translates as:
if (a is true) then b else c
You can put anything in a, b and c.
Example:
Creating an Expression "e" in a MultiBall and setting its value to
Pad.x?x:y
will mean that :
if Pad.x != 0 (i.e Pad is pressed), e=x
if Pad.x == 0 (i.e Pad is not pressed), e=y
You could for example map the e Expression to a control change that
will be mapped to the x axis when pad is pressed, and y axis when pad is released
5.1.8.3.
Others
clamp(a, min, max) : Constrain a between min max
clamp(Fader.x, 0.2, 0.3) =
0.2 if Fader.x<=0.2