End
Purpose
To establish the "bottom" of a Begin … End block.
Syntax
Begin
…
End
What It Does
The End command marks the point in a program at which execution resumes in the event the block is not executed (skipped).
Example
If (Found)
Begin
Lock
Move (Irritant.Counter + 1) To Irritant.Counter
Save Irritant
Unlock
End
Notes
-
If an
Endcommand is provided with no precedingBegin,For,Repeat, orWhilecommand, the compiler will report an error. -
You may place
Begin ... Endblocks inside otherBegin ... Endblocks up to a limit of 40. You may freely intermingle them with other block control commands (loops). However, you may not overlap them — you must end the innermost block first, then the next-innermost, and so on.