PhixFlow Help

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Function: popElement

Removes and returns the last element of a list. Returns null if performed on an empty list.

Syntax

popElement(array)

Argument Type Description
array Array List of values

Examples

popElement([2,0,1])

popElement() returns the value 1 and removes this element from the list, leaving [2,0].

$discountFilter = ifNull($discountFilterId, _NULL, popElement($discountFilters)

popElement() returns the discount filter from the end of the list of filters, then removes this filter from the list.

See Also

  • No labels