TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: John Poltorak
from: Bill Parker
date: 1995-02-24 04:16:32
subject: Ignoring things

JP> I asked this in OS2REXX but everyone there seems to have gone home...

Sorry for ignoring you John, I've been connected to OS2REXX since early
December and have received a grand total of 47 messages to date...but your
Q never made it to my system. I'm posting this answer in OS2REXX also so
you can see if it reaches you.

 JP> Is there a way to ignore case when comparing variables? 
 JP> (without parse upper..)

TRANSLATE will allow you to convert a string to uppercase for comparison
purposes without resorting to parse upper. For example...

/* using TRANSLATE() as built-in upper case converter */

parse linein str
if translate(str) = "QUIT" then say "the user wants to exit"

Bill


--- Maximus/2 2.01wb
* Origin: Blue Bird Of Prey * Vergennes, VT * (802) 877-6912 (1:325/207)
SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 942 949 955 712/515 713/888 800/1 7877/2809
@PATH: 325/207 118 320/209 142/1 3615/50 229/2 12/2442 711/409 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.