iif use in field value

Al Arzaga <aarzaga-nkJVuyUqn/[email protected]>
Newsgroups gmane.text.rlib.user
Message-ID <5D04AA663E554C4AAAEB1C300E32CE2E013F12D4@gelbermail.GELBERGROUP.COM>
Hi, folks.

Is it possible to use the iif function to determine how I display the
contents of a field?

For example, I have a "Wins" column and a "Losses" column.

<field value="iif(query.action=='W', query.wins)", col="2"' />
<literal width="1" />
<field value="iif(query.action=='L', query.losses)", col="3" />

Currently, I'm getting an error for implementing something like this.  


-Al


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.