fieldName (Object control)

Extracts the name of a list or structure field by index.

Arguments

list
to extract the field name from, can be a builtin-list or a structure.
index
is an integer number, zero-based. If the index is out of range, an error will occur.

Return values

Field

name
as a string, can be empty.

Example

a: {x: 1; y:2; }; a 0 fieldName print
Output:
x