Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: or in an if statment [please help]  (Read 2162 times)

0 Members and 1 Guest are viewing this topic.

dakota

  • Guest
or in an if statment [please help]
« on: May 11, 2006, 07:23:16 AM »
how do i say or in this type of way so it is like this if my input = this or this :-? :-? :-?
Code: [Select]
IF %input% EQU this or this (
goto start
) ELSE (
goto end
)
« Last Edit: May 11, 2006, 07:24:04 AM by dakota »

gpl



    Apprentice
  • Thanked: 27
    Re: or in an if statment [please help]
    « Reply #1 on: May 11, 2006, 09:26:50 AM »
    Try this

    IF %input% EQU this goto start
    IF %input% EQU that goto start

    goto end

    Graham

    Blackberry



      Adviser
    • For those with wings, fly to your dreams.
      Re: or in an if statment [please help]
      « Reply #2 on: May 11, 2006, 11:15:13 AM »
      try this: if "%input%"=="thisorthat" goto thisorthat
                  if not goto blabla
      Everybody knows you can't click here. But I know you will try it :)

      DosItHelp



        Intermediate
        Re: or in an if statment [please help]
        « Reply #3 on: May 11, 2006, 07:17:59 PM »
        Sometime it hels to invert the logic, i.e.:

        IF "%input%" [highlight]NEQ[/highlight] "this" IF "%input%" [highlight]NEQ[/highlight] "that" goto end
        rem start here...


        DOS IT HELP? ;)
        « Last Edit: May 11, 2006, 07:26:43 PM by DosItHelp »