Normal text inside a cell:
If the and tags are both inside the same cell, conditional text in a cell works exactly the same as in normal text. It simply includes or excludes the tagged content according to the conditions.
Even if the entire contents of the cell are deleted, nothing happens to the column or row containing the cell if there are also other cells with content in the column or row. (You cannot delete a single cell leaving just an empty space in the table.)
When a condition completely deletes the contents of a cell:
The only exception to this behavior is when conditional tags completely delete the contents of a cell and the cell is the only cell in the current row or column. If that happens, then the row or column will also be deleted. If you want to prevent this and leave an empty cell, make sure that at least one space character remains in the cell.
In the first example below, row 2 of the table will be completely removed from the table unless at least one space (or any other character) is left inside the cell containing the conditional tags.
In the second example, column 1 will be deleted because all the text in the only cell in the column is deleted. Column 2 will not be deleted, because one character is left over, and so the cell still has content.
The key is content: If any content is left in a cell then its row or column cannot be deleted, because the content "protects" the cell, row and column from deletion.
Applying conditions to the content of multiple cells:
If you want to include/exclude the content of multiple cells you must include the and conditions inside every cell! If a condition starts in one cell and ends in another cell, then the entire row or column will be deleted. This happens because rows and columns can be deleted using only an tag, without a closing tag (see further below for details).
|