catch.saravana
Member
OE 11.6 - Let's say I have a program sample.i which has below code snippet;
&IF DEFINED(test) = 2 &THEN
message "{&test}" view-as alert-box.
&ENDIF.
Now when I run below code; - let's say test.p
{sample.i
/* &test = yes */
}
Ideally I would not expect the message statement to be included in my test.p; but it gets executed and it gave me the value as 'yes' also.
If I remove the '&test = yes' then it works fine; isn't it same as that of commenting it?
It should definitely be a dumb question. It would be great if someone can help me in understanding this.
&IF DEFINED(test) = 2 &THEN
message "{&test}" view-as alert-box.
&ENDIF.
Now when I run below code; - let's say test.p
{sample.i
/* &test = yes */
}
Ideally I would not expect the message statement to be included in my test.p; but it gets executed and it gave me the value as 'yes' also.
If I remove the '&test = yes' then it works fine; isn't it same as that of commenting it?
It should definitely be a dumb question. It would be great if someone can help me in understanding this.