Tinderbox v10 Icon

Comma: function argument delimiter

For arguments (i.e. the input parameters) of action code operators and user functions, if more than one argument, each is separated by a comma.

Some operators take no arguments.:

version(); 

Some take a single argument:

tan(radiansNum); 

But many take two or more arguments:

time(aDate, hoursNum, minutesNum, secondsNum) 

and here each argument is separated by a comma. White space either side of the comma is ignored.

Note that this differs from other lists in action code where semicolon is used.

If no arguments exist or are all optional, they may be omitted. If in doubt, supply the empty parentheses. These examples both work and are functional similar:

$MyList = $MyList.unique().sort(); 
$MyList = $MyList.unique.sort; 

The .unique() operator never takes an argument, but .sort can, so another pair of alternates are:

$MyList = $MyList.unique().sort($Year); 
$MyList = $MyList.unique.sort($Year);