Onend

Top  Previous  Next

Activates alternative syntax for flow Control Structures.  Namely endloop, endif, endfor, and endwhile are introduced as keywords when the $Onend is active.  In turn, these statements end the loop, if, for, and while statements.  The dollar command is activated using the syntax

 

$Offend

or

$Onend

Notes

Both forms of the syntax cannot be valid simultaneously.
Setting the $Onend dollar command will make the alternate syntax valid, but makes the standard syntax invalid.
Examples appear in control.gms.