elseifInstrument Control:Program Flow Controlelseifelseif
Defines another "if...then" condition when a "if...then" condition is false.
Description
Defines another "if...then" condition when a "if...then" condition is false.
Syntaxelseif xa R xb then
where label is in the same instrument block and is not an expression, and where R is one of the Relational operators (<, =, <=, ==, !=) (and = for convenience, see also under Conditional Values).
Performanceelseif is used inside of a block of code between the "if...then" and endif opcodes. When a "if...then" condition is false, it defines another "if...then" condition to be met. Any number of elseif statements are allowed.
Examples
Here is an example of the elseif opcode. It uses the file elseif.csd.
Example of the elseif opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoProgram Flow Control More information on this opcode: http://www.csoundjournal.com/2006spring/controlFlow.html , written by Steven Yi CreditsNew in version 4.21