toggle
Description
When clicked, toggle outputs a 0 when turned off and a 1 when turned on. When giving input, a non-zero number will turn it on, a will turn it off, and a will alternate the state of the toggle. All numbers are converted to integer and passed through unchanged.
Examples

Arguments
None.
Attributes
bgcolor [4 floats]
Sets the background color for the object in RGBA format.
checkedcolor [4 floats]
Sets the checked color for the object in RGBA format.
parameter_enable [int]
Enables use of this object with Max for Live Parameters and allows for setting initial parameter values in the Max environment.
parameter_mappable [int] (default: 1)
When parameter_mappable is enabled, the object will be available for mapping to keyboard or MIDI input using the Mappings feature.
style [symbol] (default: )7.0.0
Sets the style to be applied to the object. Styles can be set using the Format palette.
thickness [float] (default: 50.)7.0.0
Sets the check thickness for the object.
uncheckedcolor [4 floats]7.0.0
Sets the unchecked color for the object in RGBA format. The style color.
attribute is mapped to theLegacy
elementcolor
uncheckedcolor RGBA attribute. See here for more information.
is a legacy RGB alias for theCommon Box Attributes
Parameter Attributes
Messages
bang
int
Arguments
float
Arguments
(mouse)
outputvalue7.0.0
set
Arguments
Output
int
A number received in the inlet is sent out the outlet. A toggle is being turned on or off.
or a mouse click sends or out the outlet, depending on whetherSee Also
Name | Description |
---|---|
Max For Live | Max For Live |
led | |
matrixctrl | |
pictctrl | |
radiogroup | |
tab | |
textbutton | |
togedge | |
ubutton | |
Max Basic Tutorial 4: Metro and Toggle | Max Basic Tutorial 4: Metro and Toggle |