Well I don't know that is supports an if then else based upon CLI output exactly. However I believe the end result can be acheived via the NCM Policy Reporter. You could create a policy that has a rule that checks specifically for some specific lines in the configs. And if those lines are not found you can create a remediation script to have run on those selected devices.
If you open the Policy Reporter application on the NCM server, it can guide you through the wizard which is a really nice and easy way to get started with creating your own policies.