What happens when you compile and execute the code? Are there errors? Did it work as desired?
Type: Posts; User: Norm
What happens when you compile and execute the code? Are there errors? Did it work as desired?
What kind of variable are you setting?
Give it a value so that when the loop exits you will know if a match was found.
That looks like the message is displayed inside the loop. It will display a message for every item that does not match.
Did you see this pseudo code in my last post?
Define the boolean variable...
That should do it. What have you tried?
Define the variable before the search loop
set it inside the loop if any matches found
after the loop, test it and print the message