GEQ

GEQ is a 'Greater Than or Equal To' comparison operator for the IF command.

Example

C:\> If 25 GEQ 50 ECHO smaller

C:\> If "5" GEQ "444" ECHO smaller
smaller


GEQ will perform a numeric comparison where possible, if you need a string comparison use the == comparison operator.

In addition to integer numbers, hex and octal numbers can also be compared within certain limits.

“Most great people have attained their greatest success just one step beyond their greatest failure” ~ Napoleon Hill

Related commands

IF command - EQU, NEQ, LSS, LEQ, GTR


 
Copyright © 1999-2024 SS64.com
Some rights reserved