Report with DOC(X) template - remove line if marker empty

Hi,
we use doc(x) templates with LibreOffice for generating our documents.
Now I have a request that there shouldn’t be a line visible depending of a parameter therefore another line should be visible on another place on the document.
I don’t want an empty line where the marker isn’t set.
Is there any possibility?
Thank you!
Reini