Get Complex Array Item At Index: Difference between revisions

From Visuino
Jump to navigation Jump to search
Created page with "Image:TArduinoComplexArrayGetItem.png == Summary == Retrieves a complex array item at a specified index. == Description == The **Get Complex Array Item At Index** component extracts a single element from a complex array based on the **Index** property or pin. If the specified index is valid, the corresponding complex value is output at the **Out** pin. If the array is empty, the **Empty** pin is triggered. If the index is out of range and '''Ignore Out Of Ran..."
 
(No difference)

Latest revision as of 02:13, 17 August 2025

File:TArduinoComplexArrayGetItem.png

Summary

Retrieves a complex array item at a specified index.

Description

The **Get Complex Array Item At Index** component extracts a single element from a complex array based on the **Index** property or pin. If the specified index is valid, the corresponding complex value is output at the **Out** pin. If the array is empty, the **Empty** pin is triggered. If the index is out of range and Ignore Out Of Range is disabled, the **Out Of Range** clock pin is triggered. This component is useful for random access of array elements without iterating through the entire array.

Diagram:

Categories

Properties

  • Enabled – Enables or disables the component.
  • Ignore Out Of Range – If enabled, prevents errors or clock events when the index is invalid.
  • Index – The array index to retrieve (integer).

Pins

  • In – Complex array input.

Output Pins

  • Out – Outputs the complex value at the specified index.
  • Empty – Clock pin triggered if the array is empty.
  • Out Of Range – Clock pin triggered when the index is outside the array bounds (disabled if Ignore Out Of Range is true).