Le: <=

Top  Previous  Next

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

 

Terma le Termb

or

Terma <= Termb

 

 

where Le or <= can be used interchangeably.

Examples from formconditional.gms

 

If(x Le 2, z=2);

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

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