Alphabetic equivalent to is numeric?


I am making a character name box. I can’t seem to find a simple way to check if the entry only consists of letters.
Is there a function that i am unaware of, like the String “Is numeric” function?

Cheers :slight_smile:

This is all i could find in documentation:

You need to make own function that checks if name is ok.

Ill give it a go. Verifying the word is the easy part, just needed something to tell me if an input was a letter or not. _:slight_smile:

Change all input characters to uppercase, then check if result of char to number is between 65 and 90.


Ps. Make this function PURE. Also it is not tested, but looks fine. And you can use “for each loop with break”, but that looks ugly imo.

That looks great :smiley:
Thanks a bunch. Will try it out as soon as i have a moment :slight_smile:

This is an old thread but I was just fiddling around with something like what the original question was and thought I would post my solution :slight_smile:

It pretty much stops user input in a textbox that is not predefined in the “AlphabetAndNumbersArray”. If you feel like adding any character to the “allowed list”, then just add them to the array…