Search found 1 match

by chogall
16 Aug 2011 07:31
Forum: DOS Batch Forum
Topic: How to translate a "OR" statement in BATCH ?
Replies: 3
Views: 4579

How to translate a "OR" statement in BATCH ?

Hi!

I need to write something like :

Code: Select all

if %choice% == q goto QUIT


but I want that it matches 'Q' also. So I thought about writing something like :

Code: Select all

if %choice% == q|Q goto QUIT


But it doesn't work.
Any idea how I can translate 'q' OR 'Q' ?

Thank you!