Shift Array Right Method

The Shift Array Right method shifts array elements one position forward. Siebel eScript assigns the argument values sequentially starting from the first element in the array. It fills the remaining array elements with values from the original array starting with the first value.

Format

unshift (integer)

You can include any number of arguments.

Example

The following example includes the Shift Array Right method:

var v = new Array;
v[0] = 7;
v[1] = 3;
v[2] = 4;
v[3] = 5;
v.unshift (11, 12); // v[0] is 11 now, v[1] is 12, v[2] is 7 , v[3] is 3