Batch Multiple IF's

Toshiba / Satellite m40
December 12, 2009 at 06:28:02
Specs: Windows XP, 1.397 GHz / 958 MB
Hello Guys.
Need to ask a quick question. I have messed around with this and can't figure out how it works.

Instead of having
IF %var% == hint Goto HELP
IF %var% == Hint Goto HELP
IF %var% == HINT Goto HELP

Instead of that. I want it in 1 line. Something like this.
IF %var% == (hint, Hint, HINT) Goto HELP

I don't know the correct line but you should understand what I'm getting at.

******************************************
MSN = HardstyleMatt@hotmail.co.uk
Need help? Just ask. :)
******************************************


See More: Batch Multiple IFs

Report •


#1
December 12, 2009 at 13:28:39
Case insensitive comparison perhaps?

IF /i %var% == hint Goto HELP


Batch Variable how to


Report •

#2
December 13, 2009 at 05:42:42
Cheers :-)

******************************************
MSN = HardstyleMatt@hotmail.co.uk
Need help? Just ask. :)
******************************************


Report •

Related Solutions


Ask Question