popFromArray
  • 18 Oct 2024
  • Dark
    Light
  • PDF

popFromArray

  • Dark
    Light
  • PDF

Article summary

Pop From Array Task Purpose

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.

Properties

Incoming Description
Select Job Variable (required) Select the job variable that will be modified.


Outgoing Description
popped_item The outgoing variable which contains the removed item.

Example

Assume a job variable named fruits with value ["apple","banana","orange"] and you want to remove the last element.

  1. In the pop task's properties dialog box, select fruits from the Select Job Variables dropdown.
  2. Click UPDATE.

The pop task changes job variable fruits to have value ["apple","banana"], and it returns value orange in its outgoing variable popped_item.

Pop From Array Task

PopFromArrayTask-01


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.