Lucee Function Reference
structappend()
Appends all the data from struct2 into struct1, replacing duplicate keys unless specified by the overwrite flag
Example
structappend(struct Struct1,struct Struct2,[boolean OverwriteFlag]):boolean
Category
struct
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
Struct1 | struct | Yes | Structure to which struct2 is appended. | |
Struct2 | struct | Yes | Structure that contains the data to append to struct1 | |
OverwriteFlag | boolean | No | true | - true (default): values in struct2 overwrite corresponding values in struct1. |