Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

pcall lua

if pcall(foo) then
      -- no errors while running `foo'
      ...
    else
      -- `foo' raised an error: take appropriate actions
      ...
    end
Source by www.lua.org #
 
PREVIOUS NEXT
Tagged: #pcall #lua
ADD COMMENT
Topic
Name
3+8 =