In order to use optional UDF parameters, you must not specify them in
the function declaration. See below:
function sayHello(first) {
var last = ;
if(arrayLen(arguments) gte 2) last =arguments[2];
return Hello, first last;
}
Notice I changed your writeOutput to a return. You should
Great, thanks.
Jamie
On Tue, 29 Jan 2002 11:10:29 -0500, in cf-talk you wrote:
In order to use optional UDF parameters, you must not specify them in
the function declaration. See below:
function sayHello(first) {
var last = ;
if(arrayLen(arguments) gte 2) last =arguments[2];
return
2 matches
Mail list logo