voodoochicken Posted March 11, 2008 Share Posted March 11, 2008 hi, i have a switch inside a while. i got a problem, the 'break' at the end of a case seems to break not only the switch, but also the while that wraps it. i placed an 'echo' to check the condition, and it is still false. the only way around it seems to be if else if else, many of them. any other ideas?tnx Link to comment Share on other sites More sharing options...
justsomeguy Posted March 11, 2008 Share Posted March 11, 2008 Post the code. The break statement can break out of more then one level but by default it only breaks out of one level. So if it's breaking out of the switch it shouldn't also break out of the while. Link to comment Share on other sites More sharing options...
voodoochicken Posted March 11, 2008 Author Share Posted March 11, 2008 sorry, stupid post. it was breaking because of an error in the code Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.