Skip to content

CustomTableHasKeyCondition

13.21

Class Documentation

Edit documentation

A condition that returns true if a custom table contains a key. CustomTable reads the table from a script variable, and Key produces the key to look for.

The kind of the key selects the lookup:

Key kind Lookup
Int, EntityTag Integer key
Float Integer key, after truncation toward zero
String, Int64 Hashed key. A String key is hashed in lowercase, so the lookup ignores case.
Any other kind Key of that kind

If Key produces a value that cannot be a table key, the condition records a script error and returns false.

Properties