Would like a clean way to include different table tags depending upon a condition. But there's a snag. I can work around it, but wondering if there's a clean solution.

    - if( condition)
        table(...)
    - else
        table(....)
            tr
                th .....

The indentation of tr is necessary for it to be inside the table, but that indentation stops the else branch from ending. So the table body is not included when the condition is true. How do I end the if keeping the indentation of tr in an elegant way?