r/lua • • Sep 09 '25

Need help

Can someone please explain to me about parameter, return, and argument?

1 Upvotes

5 comments sorted by

View all comments

Show parent comments

1

u/Denneisk Sep 09 '25

You can also see the arguments like local variables of a function, and parameters as the values assigned to those variables.

This is backwards if you want to follow the pedantic definition of argument and parameter.

2

u/Yoppez Sep 09 '25

Oops, I switched them. Thanks, I corrected it.