Next: , Previous: Event control, Up: Event control


5.8.1 request keyword

The request keyword is used to request an event. If someone wants to use an event, it must first be requested, and after that it can be waited. After the event is not used anymore, it must be released. The request keyword has one mandatory argument, and one optional parameter. Both are described below.

Argument
Event
The event name.
Optional argument
State
Keyword "state" must be specified if request is for event of "state" type.

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

     request Event1
     request Event2 state