Re: Euphoria ASCII function revisited
- Posted by David Alan Gay <moggie at INTERLOG.COM> Jul 26, 1997
- 996 views
>Why I wanted the ASCII function was to do an if-then from a letter input, >such as y for yes and n for no. Here's what I have so far. (code snipped after analyzing) Aha! aha! I knew you were looking for some sort of table lookup. :) But you do not need a function for that. Just do a comparison on the character values 'y' and 'n' (you can get rid of any checking for the uppercase 'Y' and 'N' if you use lower() to convert the keyboard input to lowercase) using the If statement. Euphoria will automatically convert them to numbers for you, which are the actual ASCII codes for these characters :) David Gay "A Beginner's Guide To Euphoria" http://www.geocities.com/SiliconValley/Vista/4346