The Arguments Property of a Function

The arguments property of a function is a list of the arguments that Siebel eScript passes to the function. The first argument is arguments[0], the second argument is arguments[1], and so on. You can write code that references the arguments property for a function only in that same function.

You can configure a function that includes an indefinite number of arguments. The following example uses a variable number of arguments, and then returns the sum:

function SumAll()
{
   var total = 0;
   for (var ssk = 0; ssk < arguments.length; ssk++)
{
      total += arguments[ssk];
}
   return total;
}