Skip to content

← programming package

ListFirst

Get the first item in a list.

Version 1.0.0

Ports/Properties

lst

List to process.

  • verbose name: Lst
  • default value: None
  • port type: DataPort
  • value type: list (can be None)
  • data direction: IN

item

First item of the list.

  • verbose name: Item
  • default value: None
  • port type: DataPort
  • value type: object (can be None)
  • data direction: OUT

ifempty

Behavior if list is empty. If 'error', raise an error. If 'none', return None.

  • verbose name: If Empty
  • default value: error
  • port type: EnumPort
  • value type: str (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)