Skip to main content
Docs
›
list.has

list.has

List

Checks whether a list holds a picked entry.

Signature

list.has(ref: ElementRef, key: string, item: ContentRef): boolean

Parameters

NameTypeRequiredDescription
refElementRefRequiredThe element it works on, usually self.
keystringRequiredThe name of the list.
itemContentRefRequiredThe entry the player picked.

Returns

boolean True when the list holds the entry.