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 [number]
Condition to testIf True [number]
Value if trueIf False [number]
Value if falseOutlets
Output [number]
Conditional outputFixed Attributes
These attributes must be set in the object box and determine the behavior of the object at runtime.
hot [bool] (default: 0)
All inlets trigger calculation.
Dynamic Attributes
These attributes can be modified in the code during execution using the set object
in1 [number]
Condition to test
in2 [number]
Value if true
in3 [number]
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 |