On Fri, 17 Mar 2017 20:59:28 +0100, Sönke Ludwig wrote:
The best you can probably do is to use a function or an include:
- void tableContent() tr th ... - if (condition) table(...) - tableContent(); - else table(...) - tableContent();
include table-contentwith a
Thank you. Apologies: in the end I didn't use such a table for other reasons.
However, it occurs to me that in a way, what is needed is
endif in abstract, something that is at the same level of indentation as the
if so it closes it, and yet renders to nothing. So maybe a comment will do!
- if( condition) table(...) - else table(....) //- endif tr th .....
Haven't tried this, but if it works it might be a useful technique now and again with embedded control structures.