Skip to content

← control_flow package

Break

Break out of the current loop.

This node will cause an ongoing loop to terminate and return the most recent result before the break was encountered. This is analogous to the "break" statement in conventional programming languages. A typical usage pattern is to use this node on one of the branches of an IfElse node to skip the rest of the enclosing loop if some condition is met. An important limitation is that this node may only be used inside loop constructs and cannot be used to exit out of function calls (i.e. out of a function invoked using the Call node). More Info... Version 1.0.0

Ports/Properties

result

Result of the graph.

verbose name
Result
default value
None
port type
DataPort
value type
object (can be None)
data direction
INOUT

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)