Next: , Previous: release keyword, Up: Event control


5.8.4 set keyword

The set keyword is used to set an event. Every set state event must be explicitly unset.

set has one mandatory argument and also one optional argument, as described below.

Argument
Event
The event name.
Optional argument
State
If a state is given, sets the state event, otherwise sets an indication event. A state event remains set until it is unset explicitly with the unset keyword. An indication event is set only once to every requester and implicitly unset after that.

The set keyword can be used, for example, in the following ways:

     set Event1
     set Event2 state