Can I/what syntax should be used to specify default values for the parameters of a function?
P#49573 2018-02-23 18:02 ( Edited 2018-02-24 03:05)
function func(param) param = param or 42 print(param) end func(36) -->36 func() -->42 |
P#49574 2018-02-23 18:19 ( Edited 2018-02-23 23:19)
[Please log in to post a comment]