WAIT Statement

<< Click to Display Table of Contents >>

Home  mIoTa BASIC > mIoTa BASIC Language Reference > Statements > Program Flow Commands >

WAIT Statement

The WAIT command allow you to temporarily pause the execution of an Event Code block for a set period of time.

 

The required period of time is given in number of seconds required. This is an approximate time; the actual pause time will be at least that required but could be slightly more.

 

For example ..

 

Wait(10);  // pause execution for at least 10 seconds

 

The pause will not affect any other Event Code block being executed at the same time.

 

Note: The WAIT command has been included to give flexibility to the user to allow a delay if needed in certain situations, but generally it's not recommend to pause execution of any Event Code blocks just incase the event is re-triggered while pausing. If the pause is too long this can cause the event buffer to overflow and events will be missed!