Conditional Topics / PDF Builds
Moderators: Alexander Halser, Tim Green
Conditional Topics / PDF Builds
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?
- Tim Green
- Site Admin
- Posts: 23189
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Conditional Topics / PDF Builds
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.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.