HI PLEASE HELP A CAT
I have
%variableA%=100
%variableB%=150
I would like create a %variableC% that contains the value of the lower between variable A and B, in this case %variableC%=100
example:
%variableA%=23
%variableB%=22
----------->%variableC% become 22
another
%variableA%=50
%variableB%=1000
----> variable C become 1000
how can I do? thanks
+ Reply to Thread
Results 1 to 4 of 4
-
-
if %variableA% GTR %variableB% (
Set variableC=%variableB%
) else (
Set variableC=%variableA%
) -
Your 3rd example is inconsistent with your request: 50 < 1000.
%variableA%=50
%variableB%=1000
----> variable C become 1000Last edited by Cornucopia; 30th Oct 2014 at 10:46.