Ian,
Your callback function can be a named function instead of an inline callback function like you have. That way you can check the query results for records and if there are none then you would like you said call the named callback function.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.