Open Help
cond~
Conditional operator
Description
Selects between the second and third inputs according to the boolean value of the first. If the first argument is true, the second argument will be output. Otherwise, the third argument will be output.
Inlets
Condition [auto]
Condition to testIf True [auto]
Value if trueIf False [auto]
Value if falseOutlets
Output [signal]
Conditional outputDynamic Attributes
These attributes can be modified in the code during execution using the set object
in1 [auto]
Condition to test
in2 [auto]
Value if true
in3 [auto]
Value if false
reset [bang] (default: 0)
Reset inlets to default values.
See Also
| Name | Description |
|---|---|
| eq | Equals operator |
| neq | Not equals operator |
| and | logical AND operator |
| or | Performs a logical OR |