ONSTATE

Executes the associated command when a particular event occurs.

Syntax

ONSTATE [,event] [,timer] [,replace] [command]

ON