I'm using Conditional Rules module, there some conditions inside the loop I need to break out of. However, there's no action in rules for stopping/terminating the loop.
I tried a custom rules where I tried the following but it does not work:
function my_module_break_rules_loop() {
return FALSE;
}
function my_module_break_rules_loop() {
return 0;
}
function my_module_break_rules_loop() {
break;
}
The break works but display with this error message:
PHP Fatal error: Cannot break/continue 1 level in
Any one know how to stop/terminate the loop?