Categories > TinyButStrong general >

combining groupings & conditionals - Doesn't work

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Roy
Date: 2007-12-03
Time: 06:40

combining groupings & conditionals - Doesn't work

Hi there.

In the Example of Grouping Sections, if I would like to display only scores that are 99, what should I do?

Check out this page:
http://www.tinybutstrong.com/apps/examples/tbs_us_examples_grouping.htm

I changed

     [blk_res.score;block=tr]

to

     [blk_res.score;block=tr;when [blk_res.score]==99]

But it doesn't work.
Can you suggest what I did wrong?
By: TomH
Date: 2007-12-03
Time: 13:59

Re: combining groupings & conditionals - Doesn't work

There was a message from Skrol29 about a known bug in 3.2.0 and in that thread he suggested to use semiquotes like this
  [blk_res.score;block=tr;when '[blk_res.score]'=='99']
and he reminds that the space after when is needed.

Untested, hope that works for you,
By: Roy
Date: 2007-12-04
Time: 03:47

Re: combining groupings & conditionals - Doesn't work

Im aware of that limitation and have already changed the code but it still doesn't work.