Hello, I've got a big query ... I wold like my code to do something but I don't think I'm doing it right. Basically it checks 1 string with another and prints true or false.... However I want to restrict what is inputted into the string.
So you'd have string = { james, holly, mat, holly}
etc
is they anyway of making that into a set of rules so that if the user enters a name on that list its excetped and if it isnt its not accepted?
I have thought of enum but then again I don't understand what it is