The two solutions above are both great and which one's better depends a bit on your data. For example if your arrays are huge, but the match occurs typically in the first few elements, GerdW's solutions is probably more efficient. Ton's solution is simpler and easier to read and sufficient for typical data sizes.
If you have LabVIEW 8.5, you can also enable the conditional terminal for the for loop, significantly simplifying the code. 🙂
Message Edited by altenbach on
12-03-2007 08:44 AM