Gt: >

Top  Previous  Next

One may wish to do conditional processing dependent upon whether one numerical expression is greater than another or not.  The form of the syntax that can be employed in such a case is

 

Terma gt Termb

or

Terma > Termb

 

where gt or > can be used interchangeably.  Examples from formconditional.gms

 

If(x gt 2, z=2);

Eq3$(x>2)..  zz=e=3;

Loop(I$(sqrt(x) > y+2),z=z+1)