I have a game with a computer AI that saves info to an array and I need to loop through the array, which is fine but once it finds the value I'm looking for it keeps searching, normaly this would not be a problem but the arrays can get quite large and I'd prefer to be able to simply stop the loop once I have the values that I need.