Default arguments?
Moderators: marionline, SDHawk
Default arguments?
In hspeak.exe I'm getting "script mouseclicked has no default for missing argument 1" from a line that's checking an if statement. Does this mean that you can in fact make default script arguments, and if so, how do you do that?
Code: Select all
script, myscript, arg1, arg2 = 123, begin
# arg1 is required, but arg2 has a default value
end
THAT'S what the = means in all those scripts I've read through! I feel so enlightened.Mogri wrote:Code: Select all
script, myscript, arg1, arg2 = 123, begin # arg1 is required, but arg2 has a default value end
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife