Ooooops,

You turned my brain back on
sorry Cor ;)

nicolas

Adam Glauser a écrit :
nicolas wrote:
Takken, Cor a écrit :
Much better I think, or if you feel brave:

RtnVar = Control () AND Extract () AND Calculate () AND Output ()
>
>
it's not the same thing !

when you code
IF Control ()
AND Extract ()
AND Calculate ()
AND Output ()
RtnVar = *ON
ENDIF

Extract() won't occur if Control() returns *off, that's why I wrote
about obfuscation

On my V5R4 machine, it appears that Cor's code works the same as
Nicolas'. In http://code.midrange.com/a171b1103b.html, sub2 is never
executed.

Indeed, it would be terribly confusing if the _exact_same_expression_
evaluated differently simply because it was part of an IF statement
rather than an EVAL statement.

HTH,
Adam


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.