Step/Iterate Complex Array Items

From Visuino
Jump to navigation Jump to search

File:TArduinoComplexArrayStep.png

Summary

Steps through items in a complex array one at a time.

Description

The **Step/Iterate Complex Array Items** component allows sequential iteration through each element of a complex array. When an array is provided at the **In** pin, the component outputs its items one-by-one at the **Out** pin. Each iteration provides the current element along with its **Index** and the total **Count** of elements. If the array is empty, the **Empty** clock pin is triggered. This is useful for processing or analyzing array elements individually in sequence.

Diagram:

Categories

Properties

  • Enabled – Enables or disables the component.

Pins

  • In – Complex array input to iterate through.

Output Pins

  • Out – Outputs the current complex array element.
  • Empty – Clock pin triggered if the array is empty.
  • Count – Outputs the total number of elements in the array.
  • Index – Outputs the current index of the item being iterated.