Loop issue

Hi everybody,

I have 4 movieclips on stage. I want to check a variable inside the movieclips, and if the value of the variable in ALL the mCs is false, then something else happens. I have been trying to use this code to check the value of the variable, but I haven’t been able to create the code to execute an action after all the movieclips have been checked and the variable has return false in all of them. So far, if one of the movieclips has the variable with a value of true, something happens and the loop to check the rest of the mCs is stopped:

Thanks a lot for your help

for (i = 0; i < 5; i++){
do something;