> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.itential.com/itential-platform/2023-2/studio/tasks/reference/pop/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server. # pop > Reference for the pop workflow task, which removes the last item from a job array variable and returns it. The `pop` task removes the last item from a non-empty job array variable and returns the removed item with a success finish state. It returns a failure finish state if the job array variable has no elements. ## Properties | Incoming | Description | | ------------------------------ | --------------------------- | | Select Job Variable (required) | The job variable to modify. | | Outgoing | Description | | ------------- | ----------------- | | `popped_item` | The removed item. | ## Example Given a job variable named `fruits` with value `["apple","banana","orange"]`: 1. In the pop task's properties dialog, select `fruits` from the **Select Job Variables** dropdown. 2. Click **UPDATE**. The `pop` task changes `fruits` to `["apple","banana"]` and returns `"orange"` in the outgoing variable `popped_item`. ![](/_fern-img/46a1a725523dd8923034a22da074435cf9e131d6dc92dee5776f9234e6d99fc9.webp) > Reference for the pop workflow task, which removes the last item from a job array variable and returns it.