EXIT Statement

<< Click to Display Table of Contents >>

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

EXIT Statement

The EXIT command is used to end the normal program flow within an Event Code block or a Subroutine by effectively jumping to the end of the Event Code or Subroutine.

 

The EXIT command has no parameters and can be used anywhere within an Event Code block or Subroutine.

 

For example ..

 

exit;    // jump out of the event code

u1 = 5;  // this assignment command will not be executed

 

or conditionally ..

 

if mynum = 5 then exit;