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