: ? conditional expressions <= Instrument Control:Conditional Values <= <= Determines if one value is less than or equal to another. Description Determines if one value is less than or equal to another. Syntax (a <= b ? v1 : v2) where a, b, v1 and v2 may be expressions, but a, b not audio-rate. Performance In the above conditional, a and b are first compared. If the indicated relation is true (a less than or equal to b), then the conditional expression has the value of v1; if the relation is false, the expression has the value of v2. NB.: If v1 or v2 are expressions, these will be evaluated before the conditional is determined. In terms of binding strength, all conditional operators (i.e. the relational operators (<, etc.), and ?, and : ) are weaker than the arithmetic and logical operators (+, -, *, /, && and ||). These are operators not opcodes. Therefore, they can be used within orchestra statements, but do not form complete statements themselves. Examples Here is an example of the <= operator. It uses the file lessequal.csd. Example of the <= operator. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. Its output should include lines like this: random number = 1.035781, result = 3.000000 random number = 0.134037, result = 1.000000 random number = 0.130742, result = 1.000000 random number = 1.002550, result = 3.000000 random number = 0.370565, result = 1.000000 random number = 0.655759, result = 2.000000 random number = 0.676154, result = 2.000000 ...... See also Conditional Values