List is in another list
List is in another list
- Subject: List is in another list
- From: Alex Zavatone <email@hidden>
- Date: Fri, 10 Sep 2010 17:05:59 -0500
Hi. I'm trying to see if a list is contained within another list and surprisingly, this is failing unless I'm doing something wrong.
It works fine if the variable is an integer, but doesn't seem to work for a list.
Any thoughts? Code below.
set myList to {{22.0, "0xFFB0B0B0"}, 0} set myVal to {22.0, "0xFFB0B0B0"} set zero to 0
set myResult to zero is in myList log myResult set myResult to myList contains zero log myResult
set myResult to myVal is in myList log myResult set myResult to myList contains myVal log myResult
(*true*) (*true*) (*false*) (*false*)
TIA, - Alex |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden