Skip to main content
November 8, 2006
Question

conditinal tag on row of a table

  • November 8, 2006
  • 3 replies
  • 392 views
does anybody know how you can put a conditional tag on a (single) row inside a table.
I tried it by selecting the row and then applying the conditional tag, but when I generate the chm, the row is still present
but all text is gone (so I have a blank row in my table)...

Does anyone know how I can get rid of this empty row?
This topic has been closed for replies.

3 replies

Inspiring
November 8, 2006
If your table isn't very large, create two versions of it. Simply apply different build tags to each version. Voila! Problem solved.
November 8, 2006
Hi Colum.
Thanks for the reply! I kinda figured this out in the mean time..
When you want to remove a complete row this works fine.

In 1 case I still have a problem (but I'll try to work around that...):
the problem is when I have a table with 3 columns and the first column is sometimes merged across rows. This means I have a rowspan property with a specific nr. If you want to hide some of the rows, this means that this number should be different... (value 3 has to become 2 for example if I don't want the val2 row)

This is how it looks more or less:

+-----------+----------------------+
|....text...|..val1=.blabla........|
|...........+----------------------+
|...........|.val2=..blabla........|
|...........+----------------------+
|...........|.val3=..blabla........|
+-----------+----------------------+


The way I work around it now, is by not merging but putting a table inside a table:

+-----------+------------------------+
|...text....|.+--------------------+.|
|...........|.|.val1.=.blabla......|.|
|...........|.+--------------------+.|
|...........|.|.val2=..blabla......|.|
|...........|.+--------------------+.|
|...........|.|.val3=..blabla......|.|
|...........|.+--------------------+.|
+-----------+------------------------+
RoboColum_n_
Legend
November 8, 2006
Hi bta_om. As you have discovered, RH has the rather annoying habit of applying the conditional tag to the cell contents but not the cell itself. However this is easily changed by going into the truecode and moving the conditional tag before the rows <td> tag. You'll also need to move the end of condition tag after the <\td> tag. Compile and you'll have what you want.