I am creating a scrambled word game that consists of 4 words, and therefore 4 textfields.
When the user inputs a string that is the length of the correct word, I want to check if that sequence is equal to the actual word.
If it is, I want to clear the text field and return "YES!".
If it is not, I want to clear the text field completely so the user can try again.
Example: If the actual word is "LOGIC" and the user enters "GOLIC" as his guess for the correct word, I want the text field to clear completely so the user can try again.
If the actual word is "LOGIC" and the user enters "LOGIC", I want the text field to clear and display the string "YES!"
Any help is much appreciated!