Tags · Functions · Objects
Lucee Object Methods Reference
Choose a function:

Object Method Struct.insert

Inserts a key-value pair into a structure.
Struct.insert(string key,any value,[boolean allowoverwrite]):boolean

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
key string  Yes Key that contains the inserted value.
value any  Yes Value to add.
allowoverwrite boolean  No Whether to allow overwriting a key. Default: False.