Skip to main content

Switch

This node holds a boolean state. It is either true (on) or false (off).

Inputs

Change state

SignalDescription
OnSending a signal to this input sets the state of the Switch to On.
OffSending a signal to this input sets the state of the Switch to Off.
FlipSending a signal to this input sets the Switch to the opposite of its current state. If it is On flip will set it to Off and vice versa.
DataDescription
Start StateThe starting state of the Switch. If the Start State is set to On then the Switched To On output signal will trigger instantly when applications starts, or when a component is created dynamically.

Outputs

DataDescription
Current StateThis output is either True or False depending on if the Switch is On or Off.
SignalDescription
Switched To OnThis signal is sent when the Switch goes from Off to On.
Switched To OffThis signal is sent when the Switch goes from On to Off.