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

기능

반복문 내부 블록을 빠져나올 때 사용합니다.

예제

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