if/then with and/or

Ken Ray kray at sonsothunder.com
Fri Mar 15 22:30:01 EST 2002


Shari,

Try:

if ((var1 is "goody") and (var2 is "nope") and (var3 is "hello")) then
  doSomething
end if

See if that works.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message ----- 
From: "Shari" <gogypsy at bellsouth.net>
To: <metacard at lists.runrev.com>
Sent: Friday, March 15, 2002 3:27 PM
Subject: if/then with and/or


> Okay, now this one's bugging me...
> 
> If my if/then handler includes and/or, it fails.
> 
> if var1 is "goody" and var2 is "nope" and var3 is "hello" then
>     doSomething
> end if
> 
> That fails.
> 
> if var1 is "goody" then
>     if var2 is "nope" then
>        if var3 is "hello" then
>           doSomething
>        end if
>     end if
> end if
> 
> That works.
> 
> ?
> 
> -- 
> --Shareware Games for the Mac--
> http://www.gypsyware.com
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
> 




More information about the metacard mailing list