I am trying to do the following: Finding on which iteration of a FOR loop that a true was found, and stopping the loop when it is found (a true is also not necessarily found), then using that as a condition.
The operation is a search for a value with tolerance in an array, and turning on a boolean if it is found, in a specific location (i.e. if a true is found on the first iteration, then the first boolean is on. If a true is found on the forth iteration, then the forth boolean is on etc...)