Browsing StarfallEx's section
← Back to ACE
💬

Community answer

Collected from the ACE community Discord archive around 2023-05-11. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Detecting nil-vs-omitted function arguments

⭐ StarfallUpdated 2 days ago•0 views
Use select('#', ...) to count args - distinguishes f(nil) from f() where a plain param check can't.

How to check if nil was passed vs no argument without varargs

Use select('#', ...) to count args - distinguishes f(nil) from f() where a plain param check can't.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.