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 the job array variable has no elements.
|Select Job Variable (required)||Select the job variable that will be modified.|
||The outgoing variable which contains the removed item.|
Assume a job variable named
fruits with value
["apple","banana","orange"] and you want to remove the last element.
- In the pop task's properties dialog box, select
fruitsfrom the Select Job Variables dropdown.
- Click UPDATE.
The pop task changes job variable
fruits to have value
["apple","banana"], and it returns value
orange in its outgoing variable
Figure: Pop task