I know a break statement jumps out of a loop, but does it jump out of nested loops or just the one its currently in?
break
By default, it jumps out of the innermost loop. But you can specify labels and make it jump of outer loops too.