I'm writing a function and I am allowing the user to input a number/character (anything on the keyboard really). However, I only want them to be able to enter a single element. For example, if the user enters the letter m or the letter 5 it's fine, but I don't want the user to be able to enter the word moose, or the number 500.
Is there any (I've not been able to find one on the HyperSepc, but I could not be looking clearly enough) read function that stops taking input when the very first element is entered or only returns the first element that was entered? I'm using ACL Express Edition.
Thanks for any and all help!