Posted by Roniii on November 15, 2010 at 11:00:13:
In Reply to: Re: compare multiple strings in dos posted by SpywareDr on November 15, 2010 at 03:56:29:
: : Hello,
: : How can I compare multiple strings on the same
: : line? For example:
: : if string1==string2,string3,string4 set var=X
: : Separating the string values with commas does not
: : work. Is there a way?
: Not to my knowledge, no.
OK thx for taking a look. I might try a different approach to this to see if I can accomplish what I am trying to do.
For example, I may try to perform a logical AND against two conditions.
IF (String1 >= String2) AND (String 1 <= String 4) set var=X
I'll post back with results.
Thx again.