Conditional rows, columns, sections & blocks
Conditional table rows
You can make table rows conditional by preceding a condition with ROW anywhere in the row. For example:
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713262569128%2Fimage.png&width=768&dpr=4&quality=100&sign=a8216d3a&sv=1)
When @condition1 is set to "no", the first row gets hidden.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713262632547%2Fimage.png&width=768&dpr=4&quality=100&sign=3b51f602&sv=1)
The condition can be as complex as you like, invoking special-functions and combinations with AND/OR/NOT if necessary. But for the sake of simplicity, we'll stick to simple conditions on this web page.
It does not matter where the ROW condition is located. So the following would work equally well, as opposed to having the ROW condition in the beginning of the first cell of the row.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713262785150%2Fimage.png&width=768&dpr=4&quality=100&sign=b078b81b&sv=1)
Note that you should differentiate between a row condition and a condition inside a row. For example, the second row in the first screenshot above contains a @condition2 within the row, not preceded by ROW. Such condition works in the normal way, disable the paragraph within the cell, but not removing the row. For example:
Conditional table columns
Making table columns conditional is similar to making rows condition: you prefix COLUMN or COL in some condition within the cell. For example:
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713263962634%2Fimage.png&width=768&dpr=4&quality=100&sign=ec7bf92a&sv=1)
When condition1 is set to "no", the column will disappear:
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713264002449%2Fimage.png&width=768&dpr=4&quality=100&sign=6eef379e&sv=1)
Similar to the rows, it does not matter in which cell you put the column-condition, so the following will work equally well:
Note that strange things may happen when your table contains merged/split cells. This is currently not supported.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713264036251%2Fimage.png&width=768&dpr=4&quality=100&sign=d14773b4&sv=1)
Conditional sections
MS Word documents are subdivided into "sections", divided by section breaks. Each section can have its own page settings, numbering, and so on.
In practice, in legal documents, new sections are often created to host annexes, schedules and so on.
It is possible to make an entire section optional by prefixing a condition in one of the section's paragraphs with SECTION, e.g.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713264414790%2Fimage.png&width=768&dpr=4&quality=100&sign=2c0d55bc&sv=1)
Conditional blocks
You can also make multiple document elements conditional by wrapping those elements within <<< and >>>. For example, in the screenshot below, you can see that a table, some "Smart Art" and a mathematical formula are wrapped inside of a conditional block.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713264724357%2Fimage.png&width=768&dpr=4&quality=100&sign=77abafdd&sv=1)
Each conditional block must have an identifier, right after the <<< and >>> (in the screenshot below, the identifier is optional-stuff). The identifier must not contain a space, but can contain hyphens, numbers, etc.
Importantly, the <<< and >>> and their respective identifiers and conditions should be included as a separate line, with no text before or after them.
The identifier should be included in both the start (after the <<<) and the end (after the >>>). The idea is that you can nest identifiers, e.g. to have an optional table inside of an optional outer block. For example, in the screenshot below, you can see that the Smart Art is wrapped in an inner conditional block, which does not show up because that inner conditional block's @condition2 is set to No.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fa0irling87%2F1713265010409%2Fimage.png&width=768&dpr=4&quality=100&sign=206c5444&sv=1)
Important: conditional blocks cannot cross MS Word sections, i.e. each conditional block will automatically end at the end of the MS Word section.
Conditional text boxes
It is possible to make Word "text boxes" (which float above the page and can contain content of their own) conditional.
Navigate to the "Insert" tab in MS Word and select the "Text Box" option to draw a text box in which you will place your table.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fk7ap2bfkbh%2F1686129216859%2Fimage.png&width=768&dpr=4&quality=100&sign=82e40c2a&sv=1)
Write your condition, then insert the text box and include your table inside of it. When you click the table, you should see an anchor appear next to your condition. This is important, as it decides the conditional logic that is applied to the text box/table.
By way of example, with a text box containing a table:
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fk7ap2bfkbh%2F1686129465141%2Fimage.png&width=768&dpr=4&quality=100&sign=76306364&sv=1)
Then, right-click the text box and select "More Layout Options" >> "Text Wrapping" and activate the "Top and Bottom" wrapping style.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fk7ap2bfkbh%2F1686130167715%2Fimage.png&width=768&dpr=4&quality=100&sign=68c4aef6&sv=1)
Update/Upload the document and set the question up to show or hide the frame as necessary.
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fk7ap2bfkbh%2F1686130988618%2Fimage.png&width=768&dpr=4&quality=100&sign=387aaf21&sv=1)
![](https://help.clausebuddy.com/~gitbook/image?url=https%3A%2F%2Ffiles.helpdocs.io%2Ff86qgdbm02%2Farticles%2Fk7ap2bfkbh%2F1686131019100%2Fimage.png&width=768&dpr=4&quality=100&sign=778eac09&sv=1)
You may also consider hiding the text box itself, by right-clicking it, selecting "Format Shape" and under "Shape Options" >> "Line" selecting the option "No line".
Conditional page breaks
Page breaks can also be conditional. As, technically speaking, page breaks are actual treated as characters inside of a paragraph, you can simply make a paragraph conditional by starting it with a condition and a colon.
Note that you will want to probably show the "Formatting marks" (the reverse P in the Word toolbar), otherwise the page break will not be visible.
Last updated