3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

break

Features

'break' is used to exit the internal block of a loop.

Example

Python
x =0
while True:
	x = x + 1
	if x > 10:
		break

sum = 0;cnt = 0
while True:
	if cnt > 9:
		break
	sum = sum + cnt
	cnt = cnt+1
tp_log("sum = " + str(sum))
#expected print result:
#sum = 45