Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference > Siebel eScript Language Overview > Functions >
The Function Arguments[] Property
The arguments[] property is an array of the arguments passed to a function. The first variable passed to a function is referred to as arguments[0], the second as arguments[1], and so forth.
This property allows you to have functions with an indefinite number of parameters. Here is an example of a function that takes a variable number of arguments and returns the sum:
function SumAll()
{
var total = 0;
for (var ssk = 0; ssk < SumAll.arguments.length; ssk++)
{
total += SumAll.arguments[ssk];
}
return total;
}NOTE: The arguments[] property for a particular function can be accessed only from within that function.
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference Published: 18 April 2003 |