Your else will be executed as per the below condition.....
if ( SML010 = 5 OR M1PLIN <> *blanks );
From: RPG400-L <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: 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