Categories > TinyButStrong general >

I was trying this, but isn't the solution, need input

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Shawn
Date: 2004-12-03
Time: 17:37

I was trying this, but isn't the solution, need input

Here's what I'm trying to accomplish:

If rating1 then show, if rating2 then show, if rating3 then show.

I was trying
[b1.rating1;ifempty=b1.rating2;ifempty=b1.rating3]

obviously that didn't work so now I'm stuck.  I can get this to work, but it's not what I need
[b1.rating1;ifempty=images/star2.gif]
Thanks.  Looking forward to the response and help.  Thanks.

By: Skrol29
Date: 2004-12-03
Time: 17:50

Re: I was trying this, but isn't the solution, need input

You can't perform such a complicated if/then at the Html side. Or you have to use conditional blocks, but they are blocks and not fields.

I suggest that you use an event function (parameter 'onformat' or 'onsection') to change the value. 'onformat' is the more simple, but if you have several changes to perform in the same record, use 'onsection'.