Hello friends , when i was woking in mBlock in programming i found a problem to beak from a repeating loop if the condition is not achieved for exemple:
int C=4; int a = 0; for (int i =100; i > 0; i--) { if (C == 5) { a++; } else{ break; } }
for each i from 100 to 1 do:
if C=5 add 1 to a
if not exit that loop only (not all the program)
i wish to find that in mblock program or to add it so soon (if doesn’t exists) because it helps a lot.
that was a simple exemple I hope those who have experience in programming to understand me or even others to help me. thanks all