return, continue, break
return
.
continue
and break
are used in loops:
continue
jumps back to the start of the loop, and begins another cycle.
break
permanently leaves the loop.
>> x=1; >> while( 1 ) > if(x>1000) > break; > end > x++; > end >> x x = 1001