Code: Select all
Hotstring(":*:btw", "by the way", "WrongArg")
How to achieve the same effect (that is, to report the name of the wrong argument) with a custom function?Error: Parameter #3 invalid.
Specifically: WrongArg
I know there is A_ThisFunc variable, but I don't know about anything like A_ThisFuncArgs.
Code: Select all
func(parameter) {
if parameter not in foo,bar,baz
throw
else
return "success"
}
func("aaa") ; Should throw an error