LSS is a 'Less Than' comparison operator for the IF command


C:\> If "abc" LSS "def" ECHO In Alphabetic order
In Alphabetic order

C:\> If 5 LSS 100 ECHO Smaller number found
Smaller number found

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

“No distance of place or lapse of time can lessen the friendship of those who are thoroughly persuaded of each other's worth” ~ Robert Southey

Related commands

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

Copyright © 1999-2024
Some rights reserved