Syntax: #STATE id state
Related: #TRIGGER

Sets the current state of a trigger. Causes state value to be set to false so that the trigger waits for the state to be matched. If the state number is omitted, the trigger is reset and set to its initial state. Note states are numbered starting at zero.

STATE Example

Resets the trigger by setting the state value to zero.

Add comment

Login or register to post comments