The comparison is inside of the FOR loop that will be part of the subVI.
So your top level VI should look something like this
The comparison is inside of the FOR loop that will be part of the subVI.
So your top level VI should look something like this