Simple Programming problem loop in array
When a if condition is met I want an incremental loop to exit without continuing the loop. How can I do this.
Basically get a word string from user : iterate thorugh 1 string variable in an array of 100 objects.
wordObj is an array of objects
getWord retrieves a word string in each object.
Basically go through all array objects if match found exit the 100 loop....ie if match found at 21 not necessary to go all the way to 100.....
Simple bit but I am stuck!!