Ge: >=

Top  Previous  Next

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

 

Terma ge Termb

or

Terma >= Termb

 

where ge or >= can be used interchangeably.

Examples from formconditional.gms

 

If(x ge 2, z=2);

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

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