I am trying to do a if check the checks if a random number is less than fifty. My code is this
`set/a d=%danger%+50
set /a num=%random% %%d +1
set m=50
if %num% lss %m%(
echo succsess
)`
I set danger way earlier in the code, and i know its the if condition because the error messege it gives me is
The syntax of the command is incorrect.
C:\Users\(my username)\Desktop>if 48 lss 50(
Aucun commentaire:
Enregistrer un commentaire