Recherche Google
OpenMusic 6 – User ManualOM Objects > OM Basic Objects > Dialog Items > Check Box
previous pagenext page

Controlling Operations : the Check Box

Features

The check-box object resembles a predicate. If the box is checked, it returns "true". If not, it returns "nil". Hence, it can be used as a "switch on / off condition" for the execution of programs. Hence, it must be associated with conditional boxes that will call the programs.

Inputs and Outputs

The check-box object has one input and one output :

  • "text" : a statement
  • the output returns "t" or "nil".
Editing the Statement

To change this statement :

  1. click or SHIFT click on the first input to edit it and validate,

  2. select the box again with a click and drag,

  3. evaluate the box.

Uses

Wherever the box is clicked, it is successively checked or unchecked. Depending on its state, the box output returns "t" or "nil".

In the first case, the OMIF box returns the second argument, because the checkbox returns "nil". In the second case, it returns the first argument, because the checkbox returns "t".
In the first case, the OMIF box returns the second argument, because the checkbox returns "nil". In the second case, it returns the first argument, because the checkbox returns "t".
Using Conditions in a Program
previous pagenext page
About...(c) Ircam - Centre PompidouMade with Scenari