OpenMusic

Visual Programming | Computer-Assisted Composition

Navigation : Previous | Next

Conditional Operators

Conditional Operators

Conditional operators execute an operation if one or more preconditions are fulfilled. If these conditions are not fulfilled, they can possibly execute another operation.

OM offers two conditional operators : ** omif ** and ** conditional **, which operate according to the following paradigm : “IF A, THEN do B, ELSE do C”.

Note : “A” can be the result of another opration or a condition defined by a predicate.

About Predicates :

To access the omif and conditional operators, select a menu item in the Kernel / Control menu.

References :

Contents :

Navigation : Previous | Next