Append
This formula takes in a formula for a list and appends the result of the
item formula to it, at the end. The item value must be of the same type as
the sub_value_type for the list.
Returns
array<T>
JSON Format
{
"type": "append",
"list": ...,
"item": ...,
"treat_as_set": ...
}
RPG Script
This component can be written in RPG Script as:
append(...)
Fields
| Field | Type | Required | Description |
|---|---|---|---|
treat_as_set | bool | Optional. False by default. If true, this formula will only append the item if the list doesn't contain it yet, ensuring a duplicate isn't added. Please note that if the list already contains duplicates, it will not purge them. |