Quick lookup using a if b else c

Chris Sharman chris.sharman@ccagroup.co.uk
Fri, 23 Nov 2001 15:53:01 -0000


Trying to compile the Quick fragment below (PH 7.10G3, VMS 7.3).
As far as I can tell from the manual it should be possible to say "USING
conditional-expression", but I can't find the right place to put the
parentheses.

Can anyone help ?

Thanks,
Chris Sharman

QD> field trans-id required hidden label "Id" at 4,1 data at ,4 upshift &
QD>     lookup on agents via agent-number using fieldtext nowarn, &
QD>             on pd-address via invoice-number using &
QD>                     nconvert(fieldtext[2:7]) if ("I"=fieldtext[1:1])
else nconvert(fieldtext) nowarn, &

^^^^
*E* Expected:  AND  OR  <eol>  ID  NOID  LABEL  NOLABEL  DATA  SIZE  FOR
FORMAT  POPUP  MARK  NOMARK  HIDDEN  SELECTBOX



-----------------------------------------------------------------------

Any views expressed in this message are those of the sender and not
necessarily those of CCA Group.  The unauthorized use, disclosure,
copying or alteration of this message is forbidden.  The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed.  Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.