• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple Ifs in an if statement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Multiple Ifs in an if statement (From: Christopher MJ Tangora <email@hidden>)

  • Prev by Date: Multiple Ifs in an if statement
  • Next by Date: Re: Script for Post.Office
  • Previous by thread: Multiple Ifs in an if statement
  • Next by thread: DHCP on 10.3 server
  • Index(es):
    • Date
    • Thread