Siebel eScript Language Reference > Methods Reference > Array Methods >

Shift Array Right Method


The Shift Array Right method shifts array elements to the right. 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

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.