Categories > TinyButStrong general >

Variable substitution

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: magictrickpony
Date: 2004-04-21
Time: 15:59

Variable substitution

Hi,

sorry to be extremly sad, but i seem to be unable to understand how to substitute variables values during 'MergeBlock' for something else.

i.e. how can i override boolean(*) true/false variables with something else, like "yehaa/hoo".

[blk.boolean];if [blk.boolean] = 't'; then 'yehaa';else 'hoo']

does not work as expected.

your valued feedback is appreciated.

(*) or anything else

cheers
By: Skrol29
Date: 2004-04-21
Time: 16:55

Re: Variable substitution

Hi,

That's because included TBS tags are not realy supported.
You can include TBS tags in each other, but have to ensure the order in which they will be processed.

But, for your case, you can use the keyword [val], which can be used into a TBS field to represent to value of the field.
[blk.boolean;if [val]='t';then 'yehaa';else 'hoo']
By: magictrickpony
Date: 2004-04-21
Time: 17:57

Re: Variable substitution

Hi Skrol29,

Thanks for your help, everything is honkey dorey now.

cheers!