If you do that, you might as well simplify it by coding "If answer ^= 'YES'" - that covers both bases. Why cause answers of "YOGURT" or "YO-YO" to be tested twice?
I still think that the ABBREV function is what is needed. It would accept answers "Y", "YE" and "YES", and nothing else. Regards, Richard Schuh > -----Original Message----- > From: The IBM z/VM Operating System > [mailto:[EMAIL PROTECTED] On Behalf Of Phil Smith III > Sent: Monday, July 07, 2008 10:10 AM > To: [email protected] > Subject: REXX coding question > > Sure it's working as implemented, just not as designed -- > change the OR to AND and it will do what you want. > > You're saying "If the answer doesn't start with Y *or* the > answer isn't YES then do this stuff. When it's "Y", the > first test fails but the second succeeds... > > ...phsiii >
