if statement question

Future_Lab's icon

Is it possible to give if statements an argument so that it bangs when a number falls within a certain range? So for example if a number is less than 4 but greater than 3.

I tried [if $i1 >x

Or if there's a better way to do this then please enlighten me...thanks!

Tim Lloyd's icon

[if $f13. then bang] - check out the "multiple conditions" subpatch in the [if] helpfile.

You can also use the [split] object, but it will be as though the above used =.

Future_Lab's icon

Brilliant, most helpful thanks.

I did have a look at the multiple conditions subpatch but found it a wee bit confusing.

Anyway thanks a bunch!