Browsing StarfallEx's section
← Back to ACE
💬

Community answer

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

Guarding dispatch-table calls against undefined keys

⭐ StarfallUpdated 2 days ago•0 views
functable[switch] and functable[switch]() - check the key exists before calling so an undefined switch doesn't error.

How to safely call a function from a lookup table

functable[switch] and functable[switch]() - check the key exists before calling so an undefined switch doesn't error.

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.