world.ArrayKeyExists
Tests to see if the specified array key exists
Prototype
boolean ArrayKeyExists(BSTR Name, BSTR Key);
Description
This returns TRUE (1) if the specified key in the specified array exists, and FALSE (0) if it does not.
VBscript example
Note ArrayKeyExists ("spells", "farsight")
Lua example
Note (ArrayKeyExists ("spells", "farsight"))
Return value
TRUE if the key in the array exists.
FALSE if it does not exist.
Note: TRUE is a non-zero value, FALSE is the value 0.
Related topic
See also
| Function | Description |
|---|---|
| ArrayCount | Returns the number of arrays |
| ArrayCreate | Creates an array |
| ArrayDelete | Deletes an array |
| ArrayListAll | Gets the list of arrays |
| ArrayListKeys | Gets the list of all the keys in an array |