# Pop Array Element

## Overview

![The Pop Array Element Node.](/files/z5gOhgwQ9qxoyeAaYjZd)

**Pop Array Element** removes element/s from an **Array** supplied to the **Node** and returns the resulting **Array** and the removed element/s. The element/s can be removed from either the front or back of the **Array**.

[**Scope**](/incari-studio/toolbox/overview.md#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Pop Array Element Node Attributes](/files/Dd7O8p1kY1KKsO4XcN5E)

### Outputs

`Outputs` - The number of elements you wish to remove from the **Input** **Array**. Each element has the following **Attributes**:

| Attribute   | Type          | Description                                                             |
| ----------- | ------------- | ----------------------------------------------------------------------- |
| `Data Type` | **Drop-down** | The `Data Type` of the element/s you wish to remove from the **Array**. |

### Mode

| Attribute | Type     | Description                                                                                                                                                         |
| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Pop end` | **Bool** | If the toggle is switched on, the desired element/s will be removed from the back of the **Array**, otherwise they will be removed from the front of the **Array**. |

## Inputs

| Input             | Type      | Description                                                           |
| ----------------- | --------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse** | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `Array`           | **Array** | The **Array** whose element/s you wish to remove.                     |

## Outputs

| Output                                            | Type                                      | Description                                                                                                            |
| ------------------------------------------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►)                                | Pulse                                     | A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| `Array`                                           | Array                                     | The resulting Array after the desired element/s are removed.                                                           |
| <p><code>Value</code></p><p><code>\[n]</code></p> | *Defined in the* `Data Type` *Attribute*. | The element/s removed from the Array.                                                                                  |

## See Also

* [**Array Value**](/incari-studio/toolbox/array/array-value.md)
* [**Push Array Element**](/incari-studio/toolbox/array/push-array-element.md)


---

# 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://docs.incari.com/incari-studio/toolbox/array/pop-array-element.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.
