Mark Johnson wrote:
Mats: Will that work. I've always thought any boolean in an () results in
either a 0 (false) or 1 (true).
Why not save another line :(and a processor cycle or two not storing
"CONV" ):
PRINT OCONV( REC<6>, (IF REC<5>="N" THEN "MD2" ELSE "D2/" ) )
You're right, booleans do - but this is an conditional expression and
returns either
the THEN expression or the ELSE expression.
BTW, why did microsoft assign (-1) as true. I don't think (1) works as true
and, while being 'not zero', is hard to use mathematically.
Of the microsoft part I know nothing but in u2 zero is false and
anything else is true
thus mapping OR to + and AND to * doesn't work unless your variables
are unsigned.
-- mats
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/