• Nil callback?
    0 replies, posted
Hey! I have a sqlite query function like so: [CODE]function getValQ(query, key, callback) local done local result = MySQLite.query(query, function( data ) print("test") if data then for k,v in pairs(data) do done = tostring(v[key]) callback(done) print(done) PrintTable(data) end else [B][I][U]callback(nil)[/U][/I][/B] end end) end[/CODE] I require to have a call back even though the value is nil on the callback itself. How would I go about doing that?
Sorry, you need to Log In to post a reply to this thread.