Hi all,
I'm running a query in a policy and need to check if anything was found. At the moment I check:
XPath(count($resultNodeset) > 0
Is there a better way? Does a DirXML nodeset have something like JS .length that I can check?
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it! Learn more.
Hi all,
I'm running a query in a policy and need to check if anything was found. At the moment I check:
XPath(count($resultNodeset) > 0
Is there a better way? Does a DirXML nodeset have something like JS .length that I can check?