Skip to main content

is not among the keys of

Type​

operator

Summary​

Evaluates to true if the valueToFind is not an element name in the arrayToSearch.

Syntax​

<valueToFind> is not among the keys of <arrayToSearch>

Description​

Is not among the keys of should be used to check whether an array contains an element of a specified name.

Parameters​

NameTypeDescription

valueToFind

string

arrayToSearch

array

Examples​

local tArray
put "World" into tArray["Hello"]
get "Foo" is not among the keys of tArray -- evaluates to true
if "text" is not among the keys of the dragData then
exit to top
end if

operator: is among the keys of

Compatibility and Support​

Introduced

LiveCode 2.9

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?