Endloop

Top  Previous  Next

Ordinarily Loop statements require syntax of the form

 

Loop (settovary,

  statements ;

) ;

 

and when $Onend is specified the required syntax becomes

 

$Onend

Loop settovary do

     statements ;

Endloop;

Example:

(control.gms)

The following two commands are equivalent and illustrate the ways the syntax varies.

 

Loop (i,

  DATA(I)=12 ;

) ;

$Onend

Loop i do

     DATA(I)=12 ;

Endloop;