#Lua error handling with pcall, xpcall forbidden... so just check nil?

4 messages · Page 1 of 1 (latest)

dusk zealot
#

Looks like pcall and xpcall are listed as forbidden inside triggers and actions. Is the main suggestion to do nil checking in lieu of those being available?

quasi bloom
#

Yes.

earnest linden
#

they are not meant as a substitute to try/catch on other languages

#

they are for executing dynamically generated code, that's what wa use for triggers and custom functions, but giving access to them would bypass other stuff blocked