Skip to main content
Skip table of contents

Break Command

Overview

The Break Command is used to exit the internal block of a loop.

Property

Annotation

You can insert text in the description, unique meaning, or nickname for each Parameter to differentiate from many DRL Components.

Example

DRL Code

PY
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
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.