Conditional Topics / PDF Builds

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Conditional Topics / PDF Builds

Unread post by Ga Bowen »

Is it possible to assign a topic to 3 conditions so that the pdf build will only output the document if all 3 build options are selected?
User avatar
Tim Green
Site Admin
Posts: 23178
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Conditional Topics / PDF Builds

Unread post by Tim Green »

Hi Ga,

No, this doesn't work because conditions in Help+Manual have an OR logic. This means that in a topic with multiple conditions, the condition evaluates as true if one or more is true -- but it only needs one for "truthiness".

With conditional text tags you can create an AND condition logic by nesting the conditions, like this:

IF_BUILDA IF_BUILDB IF_BUILDC text text text END END END

Then the text will only be include if all three conditions are true. You can apply this to the entire contents of a topic, or to a topic inserted as a snippet. So if you inserted two topics as snippets you could use this method to choose which of the topics is actually included as the output within the parent topic. But you can't apply it to the TOC entry, because that can only contain multiple tags.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply