has (Object control)

Checks if a list has a field with a given name.

Arguments

list
to check, can be a builtin-list or a structure.
Field
name
is a string.

Return values

condition
is TRUE if the list contains a field with the given name, FALSE otherwise.

Example

a: {x: 1; y:2; }; a "x" has print LF print a "y" has print LF print a "z" has print
Output:
TRUE TRUE FALSE