Skip to content

← control_flow package

Continue

Skip the rest of the current loop cycle and continue with the next loop iteration, if any.

This is analogous to the "continue" 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 cycle if some condition is met. The node can also be used to skip (filter out) elements in a list/dictionary/etc comprehension. 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)