Skip to content

← control_flow package

Result

Declare an output as the result of the graph.

The Result node can be used to designate the value on a particular branch as the output value of the graph, which is returned when the graph is invoked as a function with some arguments. There can only be one Result node the graph, and a Result node cannot be followed by other nodes. If you need to return a combination of multiple values, you can precede it by a CreateStructure node. 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

result_asgraph

Result of the graph, as a graph.

  • verbose name: Result Asgraph
  • default value: None
  • port type: GraphPort
  • value type: Graph (can be None)

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)