Jump to content

Simple question


Hero192

Recommended Posts

Hey again,

i want to be sure about the meaning of this checking, as you know we got result from dbPoll

so result must be not a table and it must equal 0?

can anyone correct me if im wrong

if not ( type( result ) == "table" and #result == 0 ) or result then 
        return true 
    else 
        return false 
   end 

~Thanks in advance!!

Link to comment

That if statement is checking if 'result' isn't a table and its length is equal to 0. If it's not true, it will check if 'result' is not nil or false and will return true.

What do you want to do exactly? What kind of checking you want to do?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...