# Add Item To Generic List

![](/files/LMZneHMkthmJkcuPbeuz)

## Description

Adds Any non-Identifier item to Any List, optionally allowing for duplicate entries to be added. If the item is also a list, its entries will be individually added into the result.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node Executes a function directly in the node string.

## Inputs

| Input            | Type       | Required | Description                                                      |
| ---------------- | ---------- | -------- | ---------------------------------------------------------------- |
| Any List         | List       | Yes      | Which list to add item to.                                       |
| Any              | (anything) | Yes      | The thing being added to the list.                               |
| Allow Duplicates | Boolean    | Yes      | Whether or not more than one of the thing can exist in the list. |

## Outputs

| Output       | Type         | Description                                      |
| ------------ | ------------ | ------------------------------------------------ |
| Generic List | Generic List | The new list after adding the thing to the list. |

\
\
**Contributors**

AddiCt3d 2CHa0s


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.thescriptersguild.com/scripting/nodes/lists/add-item-to-generic-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
