I have a code:
for i=1:n for j=1:n if 'some condition' 'some logic' if 'some condition' break end end endend
now my question is that if the 2nd if statement is true and it breaks shouldnt it end the 2nd for loop since if statement is under 2nd for loop but whenever I run this if the 2nd if statement is true and it breaks it ends the 1st for loop.
Any guidance is highly appreciated.
Best Answer