Categories > TinyButStrong general >

Conditional displaying of vars

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Popeye
Date: 2008-07-26
Time: 20:03

Conditional displaying of vars

Hi,

I've got a simple part of a HTML-template with following row:

- [var.text1]<br />

How can I advise TBS, that this row inclusive the character '-' and the HTML-tag '<br />' is only displayed, when the variable text1 has a value???

Thanks in Advance
By: Skrol29
Date: 2008-07-27
Time: 00:13

Re: Conditional displaying of vars

Hi,

The magnet parameter is made for you :)

- [var.text1;magnet=_]<br />
(not tested)
By: Popeye
Date: 2008-07-27
Time: 07:59

Re: Conditional displaying of vars

Hi,

thanks for your help, its working fine!!! BTW, for what ist the parameter '_' standing for?
By: Skrol29
Date: 2008-07-27
Time: 13:07

Re: Conditional displaying of vars

"_" means the line in a text file. It can be used for parameter "block" or "magnet"