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.
JSON Format
{
"type": "append",
"list": ...,
"item": ...,
"treat_as_set": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
list | StatFormulaComponent | ✓ | The formula for the list. Must return an array (list). |
item | StatFormulaComponent | ✓ | The formula for the item to append to the list. The item value must be of the same type as the sub_value_type for the list. |
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. |