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

switch Reference

Conditional ternary operator

switch

Examples

Constructors

  • { arguments={condition, iftrue, iffalse}, inlets={} }
  • { arguments={iftrue, iffalse}, inlets={condition} }
  • { arguments={iftrue}, inlets={condition, iffalse} }
  • { arguments={}, inlets={condition, iftrue, iffalse} }

Inlets

condition

Typefloat

condition to test

iftrue

Typefloat

value if true

iffalse

Typefloat

value if false

Attributes

Common Box Attributes

See Also

Name Description
gate
mix
selector
smoothstep