This node holds a boolean state. It is either true (on) or false (off).
{/##head##/}
Inputs
Change state
Signal
Description
On
{/##input:on##/}Sending a signal to this input sets the state of the Switch to On.{/##input##/}
Off
{/##input:on##/}Sending a signal to this input sets the state of the Switch to Off.{/##input##/}
Flip
{/##input:flip##/}Sending 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.{/##input##/}
Data
Description
Start State
The 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
Data
Description
Current State
{/##output:state##/}This output is either True or False depending on if the Switch is On or Off.{/##output##/}
Signal
Description
Switched To On
{/##output:switchedToOn##/}This signal is sent when the Switch goes from Off to On.{/##output##/}
Switched To Off
{/##output:switchedToOff##/}This signal is sent when the Switch goes from On to Off.{/##output##/}