Here is one example
SML010 = 4, M1PLIN = *blanks
That would skip record
SML010 = 4, M1PLIN = '@'
That would include record
So your if statement for the else would not work
Trying to come up with it myself
Not so easy
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Jay Vaughn
Sent: Wednesday, February 27, 2019 9:11 AM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] if statement brain cramp
don't laugh, but i need to make sure i get this absolutely certain..
very elementary here... but, at risk of looking like a complete dummy...
what is the else to this if statement (in statement form)?
if ( SML010 <> 5 and M1PLIN = *blanks);
I think it is...
if ( SML010 = 5 and M1PLIN = *blanks );
But need to be absolutely sure and want 2nd, 3rd, 4th opinions...
I want to includeRecord based on a true if statement condition.
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.