NewLisp function with a variable number or arguments?
Posted: Mon Jul 25, 2005 6:10 pm
Is it possible to have a custom function defined in newLisp that accepts a variable number of arguments?
For example, could I have the "doThis" function accept an integer named "number1" and a string named "text" or just two integers, "number1" and "number2"? How would I do this? Can you do it by just specifying all parameters in the define statement for the function, and then if the values are not used they are passed as nil?
Thanks,
The Sunburned Surveyor
For example, could I have the "doThis" function accept an integer named "number1" and a string named "text" or just two integers, "number1" and "number2"? How would I do this? Can you do it by just specifying all parameters in the define statement for the function, and then if the values are not used they are passed as nil?
Thanks,
The Sunburned Surveyor