Super easy question I can't find the answer to

havok

Member
Where arrays of arguments are concerned, if an argument is optional, what if anything do I put in its place between them commas? Nil?

Sent from my KFTHWI using Tapatalk HD
 
II would think you need to pass something to avoid a script error. You can test for the number of arguments passed with count _this. I think that to pass on an empty or dummy variable, you still need an entry in the argument list, but you could pass "dummy" or something if nil did not work.
 
The variable will never create if you don't declare them I would think. Without _MyVariable being stated in the build list the code will hard error at the point of usage (if I read your question correctly).
 
Back
Top