D
Don Quixote
Hi,
I used to know this but totally forgot how to do that:
How do you apply OR and AND conditions in IF statements, as in:
------------------------
set /p name="what is your name?"
if /i %name%==("danny" OR "tammy") echo I know you
-------------------------
I know "OR" isn't supposed to be there, but I thought it used to be
the double-pipe symbol (||), and double ambersand (&&) for AND, but I
think I might be confusing that with C-scripting.
Any ideas on how to make these type of conditions (on a single line,
that is)?
Thanks.
I used to know this but totally forgot how to do that:
How do you apply OR and AND conditions in IF statements, as in:
------------------------
set /p name="what is your name?"
if /i %name%==("danny" OR "tammy") echo I know you
-------------------------
I know "OR" isn't supposed to be there, but I thought it used to be
the double-pipe symbol (||), and double ambersand (&&) for AND, but I
think I might be confusing that with C-scripting.
Any ideas on how to make these type of conditions (on a single line,
that is)?
Thanks.