Categories > TinyButStrong general >

Conditional display

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Horst Günther
Date: 2013-04-16
Time: 16:48

Conditional display

Hi,

it seems to be easy, but it doesnt work:

There are two fields in a record, a and b.
If a has a specific value ('x'), I want to disblay b, otherwise nothing.

I tried:

                    <td>
                      [daten.b;if daten.a='x';]
                    </td>

Is there a wrong syntax or is it not possible this way?

Many thanks

Horst
By: Skrol29
Date: 2013-04-16
Time: 17:14

Re: Conditional display

Hi,
[daten.b;if '[daten.a]'!='x';then '']
By: Horst Günther
Date: 2013-04-16
Time: 17:19

Re: Conditional display

Thank you very much, it works.

I suggest, to have more examples I havent seen such an example in the documentation.