Skip to content

← programming package

RangeIterator

Iterate over a range of integers between start, and optionally stop, with a specified step size.

The range is by default excluding the stop value, unless inclusive is set to True. Beware: when you use this node in a script, create it with RangeIterator(stop=10) instead of RangeIterator(10), since the latter will create a node with a start value of 10, counting up indefinitely. Version 1.0.0

Ports/Properties

curvalue

Current value.

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

start

Start of the range.

  • verbose name: Start
  • default value: 0
  • port type: IntPort
  • value type: int (can be None)

stop

End of the range. If set to None, the range will be infinite.

  • verbose name: Stop
  • default value: None
  • port type: IntPort
  • value type: int (can be None)

step

Step size of the range.

  • verbose name: Step
  • default value: 1
  • port type: IntPort
  • value type: int (can be None)

inclusive

Whether the stop value is inclusive or exclusive.

  • verbose name: End Is Inclusive
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

verbose

Whether to print the current item to the console.

  • verbose name: Verbose
  • default value: False
  • port type: BoolPort
  • value type: bool (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)