Find Integer Array Position: Difference between revisions

From Visuino
Jump to navigation Jump to search
Created page with "Image:TArduinoIntegerArrayFindPosition.png == Summary == Finds the first position of a specified integer value within an integer array input. == Description == The **Find Integer Array Position** component scans the incoming integer array from the **In** pin and searches for the first occurrence of the specified **Value Elements**. If a match is found, its index position is sent to the **Out** pin. If no match is found, the **Missing** clock output is triggered..."
 
(No difference)

Latest revision as of 08:48, 12 November 2025

File:TArduinoIntegerArrayFindPosition.png

Summary

Finds the first position of a specified integer value within an integer array input.

Description

The **Find Integer Array Position** component scans the incoming integer array from the **In** pin and searches for the first occurrence of the specified **Value Elements**. If a match is found, its index position is sent to the **Out** pin. If no match is found, the **Missing** clock output is triggered. This component is useful for locating a specific integer value in an array, enabling index-based operations and conditional logic.

Diagram:

Properties

  • Enabled – Enables or disables the component.
  • Value Elements – Click the **…** button to open the **Elements Window** and add **Value** elements representing the integer values to search for.

Pins

Input Pins

  • In – Integer array input to be searched.

Output Pins

  • Out – Integer output representing the index position of the first match.
  • Missing – Clock output triggered when the specified value is not found in the array.

Categories