Skip to main content
Docs
›
list.field

list.field

List

Reads a field of an entry the list holds.

Signature

list.field(ref: ElementRef, key: string, item: ContentRef, field: string): AbiValue

Parameters

NameTypeRequiredDescription
refElementRefRequiredThe element it works on, usually self.
keystringRequiredThe name of the list.
itemContentRefRequiredThe entry to read: the player's pick, or a row's key.
fieldstringRequiredThe name of the entry's field.

Returns

AbiValue The value of the field, or null when the list does not hold the entry.