ElementIsInList

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Needle> is in <Target>
Associationscom.livecode.list
Summary

Determines if a given element is in Target

Parameters
NameTypeDescription
Needle

Any expression.

Target

An expression which evaluates to a list.

Example
variable tList as List
put [ "a", "b", "c", "d" ] into tList

variable tIsIn as Boolean
put "a" is in tList into tIsIn -- tIsIn contains true
Values
NameTypeDescription
return

Returns true if Needle can be found among the elements of Target.

Description

Needle must be an element of Target rather than a sublist, or contained within a list element of Target.

Tagslists