Re: Multiple Ifs in an if statement
Re: Multiple Ifs in an if statement
- Subject: Re: Multiple Ifs in an if statement
- From: Bill White <email@hidden>
- Date: Mon, 08 Mar 2004 11:49:07 -0500
>
if X contains A or B then
>
do something
>
end if
>
>
X being a list
>
A being one variable inside of X
>
B being another variable inside of X
>
>
Is this possible?
Chris,
Try something like this:
set X to {1, 2, 3, "a", "b", "c"}
set A to 3
set B to "c"
if A is in X and B is in X then
beep 5 -- or whatever
end if
--Bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.