Lt: <

Top  Previous  Next

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

 

Terma lt Termb

or

Terma < Termb

 

where Lt or < can be used interchangeably.

Examples from formconditional.gms

 

If(x Lt 2, z=2);

Eq4$(x<2)..  zz=e=3;

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