<Var/Array> = The array to have the element removed from it.
<Var/Number> = The array index (element) to be removed.
Deletes the specified element from an array.
The array is one element smaller after this instruction executes.
Example:
$value = 5
$index = get index of $value in array $this.array offset = -1 + 1
remove element from array $this.array at index $index
The above example would find the required index of the selected value and then the return from that command could be used to specify which index is to be removed from the selected array. If the 'get index' command cannot find the required value in the selected array it returns null.
See here for an explanation of the 'get index' command.
Command Location:
- »» General Commands
- »» Arrays
remove element from array <Var/Array> at index <Var/Number>
- »» Arrays