A newer version of Max is available. Click here to access the latest version of the Max documentation

cond Reference

Conditional operator

cond

Examples

Inlets

Condition [number]

Condition to test

If True [number]

Value if true

If False [number]

Value if false

Outlets

Output [number]

Conditional output

Fixed 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