Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1678

Numeric variables comparison

$
0
0
Hi guys, this cmd batch works fine if it runs without TCC:

Code:
@ECHO OFF

SET "var_a=8.5"
SET "var_b=8.4.9"

IF %var_a% LSS %var_b% (
ECHO NOT CORRECT)

But If I run it with TCC the result is not correct. Why?
I would like to find a solution compatible for both systems (cmd batch and TCC)

Thank you!!

Viewing all articles
Browse latest Browse all 1678

Trending Articles