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


5.8.2 wait keyword

The wait keyword is used to wait for an event. A request must be called before wait, and wait blocks until the requested event is set. wait may proceed immediately if the requested event is a state event and already pending (for example, a phone call is already active). wait has one mandatory argument, which is described below.

Argument
Event
The event name.

The wait keyword can be used, for example, in the following way:

     wait Event1