Question from a newbie
Sorry about the newbie-ish question. I just recently started using TBS, but after going through the manual, I am having a hard time finding out how to do something relatively should be simple.
I want to show a certain text if only a certain value is set.
The php equivalent to what I would want would be this.
I have gotten this to successfully work:
Unfortunately, this is not what I'm aiming to do. It FUNCTIONS how I want, sort of, but I'm wondering if there is something similar to this (I know the next part is psuedo-code, sorry about that)
or even something similar to this would be nice too if there is a way.
The idea behind this is that I could use the sets of variables to turn certain parts of texts on or off depending if a variable is set to a certain value, or even if it is set at all without relying on tr tags, or blocks of any sort. I know the last few parts are psuedocode and are not true TBS code, but I was wondering if there is anything similar to it. I'm sorry if this has been answered before, but I hadn't been able to find any information about it.
Re: Question from a newbie
They are several way to perform conditional display.
You can do it with conditional blocks, as you did with <tr>.
But it can works with <div>, <span>, ... even a line of text in the source of the template ("block=_")
And you can also define a block explicitly like this :
You can also perform a conditional display on a single field. Parameters if/tehn/else are done for that.