Toggle
The Toggle block is used to alternate between two states.
i.e. route an input between an on and off command each time a button is pressed.
This block can pass through a simple command or JSON payload.
Each time an input is received into the Toggle inlet, it is routed to either the ON or OFF outlet before the block changes routing ready to direct the following command.
Input
- Toggle – Payload / Fixed Value / String
Outputs
-
On – The input will be passed to this output every other time the block receives an input.
-
Off – The input will be passed to this output every other time the block receives an input.
-
Change - Any time the Toggle state changes (i.e. every time the block receives an input), an output will be emitted from this outlet.
Default State
- When the Workspace is first loaded, the value in this field (On/Off) will determine the routing of the first payload to enter the block.