From The Document Foundation Wiki
As the screenshot above shows, sections can be hidden conditionally. It is possible to automate the switching between Show and Hide by inserting a variable into the document.
- Variables associate a name (the name given to the variable) with a value or an object. This value can change, hence the name, and the variable fields allow you to add dynamic content to the document.