I understand now, thanks. So.. In my example, comparing to the official plugin, there's extra 2 lines of code when calling the function and 2 extra lines of code when defining the function, but that's ok
Thank you for clearing that out.
P.S. "declare parameter" and "Set parameter" should be done behind the scene, since I will declare a parameter ONLY if will use it in the function defininition
I mean, if I use a string instead of number for the parameter index it should be acting like the example you provided, without me adding extra lines of code.
Something similar to "function overload"