Array Pop
The Array Pop block provides a programming method that removes the last element from an array and returns the element as the result. Also, it updates the length of the array when an element is removed and returned.
Procedure
To incorporate the Array Pop block into a workflow, complete the following steps:
- Drag and drop the block to your chosen location in the workflow.
- In the Array field, specify the array name. For example, you can enter $result.
- Run the workflow to observe the effect of the Array Pop block.
Compatibility
The Array Pop block is designed to work effectively with ForEach loops. By combining these two elements, you can efficiently process arrays and achieve the desired outcome.
Disabling the Array Pop block
To disable an Array Pop block without deleting it, turn off the switch in the block header.