I'm having difficulty with number comparisons like <, >, and == in my Batch code. What Im doing is generating a random number and using that answer to do something, this is what I've written:
set rand=%random%
set rand=%rand:~1,1%
If %rand%==9 goto nine
If %rand%>5 goto above 5
If %rand%>1 goto above 1
If %rand%==0 goto zero
And the code just closes when I run it. I tried putting space between the two objects being compared and the inequality but it still doesn't work.
Remember, this is Batch code on Windows.