You can set the conditional visibility on tables and rows in tables in a document templates.
Select the table/row and use the alternate mouse button and select the edit condition for visibility from the context menu.