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: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

----- Original Message ----- 
From: "Shari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard
> 

_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to