Categories > TinyButStrong general >

greater than condition in template

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: bunak
Date: 2005-10-21
Time: 15:44

greater than condition in template

I am using +- like that:

<tr class="[var.barva;if [blk_res.OUT]+-0;then 'cerveny']">

for change tr color
but it works like != 0

where I am doing mistake? pls help
thanx
Bunak
By: Skrol29
Date: 2005-10-21
Time: 16:22

Re: greater than condition in template

Try this to check :
  replace [var. with [xvar.
  in order to avoid the Var Field to be preocessed.
Then look what is the if expression. If it's not a number comparaison then it won't work.
By: bunak
Date: 2005-10-24
Time: 11:15

Re: greater than condition in template

Thanks for Your answer. I found it. Problem wasn't in TBS but in me :o( I wrote 1999 instead of 1899 :o( Comparition works correctly.