if statement with empty query
I don't have a strong javascript background and was wondering if someone could answer this question. I want to write an if statement that does something based on whether my query returned anything or not. var gr = new GlideRecord('sc_cat_item'); gr....