RE: Optional UDF arguments

2002-01-29 Thread Raymond Camden
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

Re: Optional UDF arguments

2002-01-29 Thread Jamie Jackson
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