I want the user to input a text in the text box and if that text matches any text in an array something would happen. How can I compare the entire array to a text?
Develop games in your browser. Powerful, performant & highly capable.
scirra.com/manual/108/array
Contains value
Searches the entire array to check if any of the elements contains the given value. For example, you can use this to test if the string "sword" is stored anywhere in the array.
scirra.com/manual/117/textbox
Text
Get a string containing the text currently entered in to the field.