|Hey, sorry for taking so long to reply, the more I try to solve things the more errors I get lol. |
All I'm trying to do is search a number inside a string using 'for'.
Q1: Was this "set /a suit="%random% %% 4"" an actual command? I tried using it and it didn't work.
Q2: I just found out I need to enclose the variable in single quotes for it to not be considered a
file, but is it possible to use it in other commands such as 'find'/'findstr'?? Do I really need to
echo it to a file to achieve that =/? Could I 'clip' it and make 'find'/'findstr' search Windows
Clipboard? Is the only way out to compare the last variable to all the other ones?
Q3: When I was adding the suits into the game I decided to give every card an specific value [1-52],
but when I tried to use "IF GTR" to compare it such as:
IF "%var%" GTR "13" SET SUIT=C
It returned as true?? Do I need to use the same number of characters on both strings like "08" and "13" for the command to work? That would complicate things up =/...