|
Hi Rob, Jeff, IF/ELSEIF is pretty much the same as SELECT, without the SELECT. SELECT WHEN a = b do something WHEN c = d do something else OTHER do anything ENDSL IF a = b do something ELSEIF c = d do something else ELSE do anything ENDIF are equivalent. Peter Dow Dow Software Services, Inc. www.dowsoftware.com 909 793-9050 voice 909 793-4480 fax > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Jeff Crosby > Sent: Friday, August 19, 2005 11:19 AM > To: 'RPG programming on the AS400 / iSeries' > Subject: RE: read on a do loop > > > > I find myself thinking the same way about if's versus select. > > Every time I think I have a single case if I come up with > > 'the third option'. I've pretty much made it another mantra > > to always use select instead of if. > > 1 - Nested if's are bug ugly. > > 2 - Using select makes you think about 'the third option'. > > Sometimes the things you say you do scare me. I feel the same > way regarding > if/select. It must be the water in NE Indiana. > > Or the beer. > > -- > Jeff Crosby > Dilgard Frozen Foods, Inc. > P.O. Box 13369 > Ft. Wayne, IN 46868-3369 > 260-422-7531 > > The opinions expressed are my own and not necessarily the opinion of my > company. Unless I say so. > > > > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 8/19/2005 > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 8/19/2005
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.