state_exit
state_exit()The state_exit event occurs whenever the state command is used to transition to another state. It is handled before the new states state_entry event.
Examples
Section titled “Examples”Add example usage here showing how to handle the state_exit event.
Add additional notes, caveats, or tips here.
See Also
Section titled “See Also”- Related events and functions can be linked here