Skip to main content
Participant
September 23, 2021
Question

Multiple conditional-section in one paragraph

  • September 23, 2021
  • 0 replies
  • 202 views

Hello everyone,

 

I'm trying to make a docx template where for some paragraphs one or another word would appear in the paragraph. This is how I'm trying to achieve it: 

...voornoemde {% conditional-section expr(hasCollectiveAgreement = true) %}cao{%
end-section %}{% conditional-section expr(hasCollectiveAgreement = false) %}Policy
Eindejaarspremie{% end-section %}.

Document merging works fine if I use only one conditional-section within a paragraph, but whenever there are two side by side like shown above, the merging process doesn't pick the conditionals and leaves the text with as is. I tried putting some text netween the two conditional-sections but it didn't work.

How can I solve this ?

    This topic has been closed for replies.