LEQ

LEQ is a 'Less Than or Equal To' comparison operator for the IF command

Examples

C:\> If 25 LEQ 50 ECHO smaller
smaller

C:\> If "250" LEQ "50" ECHO smaller
smaller


LEQ 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.

“It is not the man who has too little, but the man who craves more, who is poor” ~ President José Mujica

Related commands

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


 
Copyright © 1999-2024 SS64.com
Some rights reserved