Toggle
The Toggle accessor (class ) switches another attribute between true and false each time the attribute is set. The value assigned to the attribute containing a toggle behavior is ignored.
Parameters
-
Boolean Attribute: Attribute that is switched when the behavior is evaluated. It must be a Boolean type (for example, the visibility attribute of the object).
Example
The following example shows the random prototype in the sources prototype library with the value toggle.