Doing a random true/false =FIXED=
Posted: 20 Nov 2010 12:29
if %something% ==1 (echo true) else (echo false)
I'm working on a batch file to randomize a config file, but I've run into a hitch for the true/false options.
I've got a system working to randomly pick a 1 or a 2, but how would I go about doing this:
If number is 1, set a variable=true
Else set a variable=false
I'm working on a batch file to randomize a config file, but I've run into a hitch for the true/false options.
I've got a system working to randomly pick a 1 or a 2, but how would I go about doing this:
If number is 1, set a variable=true
Else set a variable=false