Hi, the title is a little misleading but basically what I'd like to know is whether it's possible to execute loop conditional on an if statement:
echo $counter . "<br />";
Obviously that code won't work, because it runs into a problem with the loop not being properly closed. What I want to do is have a different for statement pending a certain condition is met.
My actual code is much much much longer, hence why I don't want to write two for loops - so is there a way to do this? I hope I explained myself properly.