You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the best way to check if result returned by :query is empty?
Atm I'm doing if not res or cjson.encode(res) == '{}' then but I feel that having to import cjson is too much, is there a more direct way without changing res to string?
The text was updated successfully, but these errors were encountered:
What is the best way to check if result returned by :query is empty?
Atm I'm doing
if not res or cjson.encode(res) == '{}' then
but I feel that having to import cjson is too much, is there a more direct way without changing res to string?The text was updated successfully, but these errors were encountered: