Template Engine language reference > Arrays > Array functions > .remove()

.remove()
This array function removes an element from a specific position in an array. For example, $array.remove(5) removes the index 5 element from the array $array. All elements with higher indexes in the original array are moved one step.
Example 8
Template
#set($array=[7,4,3,6])
$array
$array.remove(1)
$array
Output
[7, 4, 3, 6]
[7, 3, 6]
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26