<Value> = The value to be inserted into the target array.
<Var/Array> = The array the new value is to be inserted into.
<Var/Number> = The index number (element) that the new value is to be inserted at.
Inserts the specified value into the specified array.
The value becomes the array's new element <Var/Number>, and the old element that was at that index moves up one, ie if inserted at index 9, the original 9 would become 10 and all subsequent indexes would also move by 1.
The target array is one element larger after this instruction executes.
Note -> <Value> can be larger than one element.
Example:
$value = 5
insert $value into array $this.array at index 9
The $value would be inserted into the array $this.array at index number 9.
Command Location:
- »» General Commands
- »» Arrays
insert <Value> into array <Var/Array> at index <Var/Number>
- »» Arrays