Validating rules
You can follow the information in this topic to verify whether a rule is enabled or disabled.
Use the
isc-rule directive and iscRule service to
check whether a rule is enabled or not.- Directive
<div isc-rule="WCC_SHOW_IMAGES">content is shown if the rule is enabled</div> - Service
if(iscRule.isRuleEnabled("WCC_SHOW_IMAGES")){ //do something when rule is enabled }
For more information about the directive and service, refer to the javascript documentation available with the product.