I am having a problem with the if statements in my program. For example:
if %variable% GEQ 20 (
Do Something
)
whenever I run that program I get an error which says that the number 20 unexpected at this time.
I've checked on google and under the command if /?
but I still can't find an answer. Could anyone explain why this is happening and how to fix it?
Edit
This is where the variable is set:
for /f "Tokens=7" %%a IN (AimiMood.txt) DO (
set Loneliness=%%a
)
And this is the file from which the value is extracted:
0 0 0 50 0 0 30 0 0 0 26/12/2015 23:50:30.5