Hi,

in my Rule i add Action loop (i assume it's function "foreach") and i added custom php function to break it (i want to exit loop after specified loop number).

   $i=1;
       if( $i==1){
           break 1;
       }

function.

This function is breaking my loop (nice) but is also breaking my site. What are the other possibilities to exit loop?

Comments

h00dwynk’s picture

Read this