NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to search through an Array of Containers

Hello 

 

Looking to search through an array of containers, meaning going through each index and then searching inside the container for the specified value

 

I'm aware of TestStands "Contains" function but that does not seem to look inside containers that are inside an array

Manny00_0-1680476841290.png

 

So for example using the image above, i want to look in the "TESTING" array, then go through each container looking for the string value of "FindMe"

is this possible and how can this be achieved?

 

0 Kudos
Message 1 of 3
(833 Views)

I am using Teststand 2022 

0 Kudos
Message 2 of 3
(793 Views)

One option is just a For Each loop on your array. Then have an if statement in the for each for the string comparison. If it matches use a break step since you have found what you want.

0 Kudos
Message 3 of 3
(767 Views)