I have created a loop in the rules actions and using conditional_rules module.

If a certain condition is true I am setting variable to a specific value and want to terminate that loop so that my variable have that update value.

Is there any way to break/terminate the loop or should I create a custom action for this?

If YES to custom action then what will be the return value for the custom action callback function?

I have tried the following in the custom action callback function but did not work.

return FALSE;
return 0;
break;

Comments

milos.kroulik’s picture

I'm also interested.

hmdnawaz’s picture

return FALSE is working.

Ahmad Nawaz
Acquia Certified Developer
Email: hmdnawaz@gmail.com
Skype: hmdnawaz