08-23-2017 05:13 AM
I am aware of searching through an array for 1 element. But how could I do it for 2? I used the search 1D array function twice to check if an array consists of atleast one of two elements for 2 sets.
Is there an elegant way of doing it?
Solved! Go to Solution.
08-23-2017 05:25 AM - edited 08-23-2017 05:26 AM
i think that is exactly the way.
for each element you want to find you have to invoke the seach-1d-array function.
if you have the condition either one of your two candidates has to be present,
you can early exit after finding one of the two.
in the OpenG tools there is a "Search Array_ogtk.vi" that lets you input an array for the elements to search
08-23-2017 05:34 AM
Try this which will give the first found element if found, else empty which means none of the elements found