function dupa() local createDatabaseConnectionResult, createDatabaseConnectionErrorInfo = CreateDatabaseConnection() if ( createDatabaseConnectionResult == false OR createDatabaseConnectionErrorInfo ~= nil ) then return false, createErrocreateDatabaseConnectionErrorInforInfo end local doSomethingResult, doSomethingErrorMessage = doSomething() if ( doSomethingResult == false OR doSomethingErrorMessage ~= nil ) then return false, doSomethingErrorMessage end local closeDatabaseConnectionResult, closeDatabaseConnectionErrorInfo = CloseDatabaseConnection() if ( closeDatabaseConnectionResult == false OR closeDatabaseConnectionErrorInfo ~= nil ) then return false, closeDatabaseConnectionErrorInfo end end