<< abort | Interpreter functions | continue >> |
break |
break statement is used to exit a loop prematurely.
break statement can be used inside a for or a while loop.
for i = 1:10
if i == 5
disp('i == 5');
break;
end
disp(i)
end
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET