Using conditional output
Conditional output works in the same way on all the levels where it is supported: You mark a part of your project (text, graphic, topic, chapter etc.) with a condition, referred to as an "include option" or "build option", and then choose whether you want to apply the condition when you publish your project.
You can search and replace conditional text tags. Just select "Conditional Texts" in the "Find where:" field when you search. See Searching for details. |
Tag a topic or chapter
When you tag chapters their sub-topics will not be tagged with the same conditions automatically – you need to use multi-select to tag multiple topics at the same time. See Topic include options for full details. Tag content in a topic
|
When you publish your project select the include options that you want to apply in the Publish dialog, in the Include Options box on the right. You can choose to apply individual options, combinations of options, all options or no options for every compile run. Include options based on output format are activated automatically when you select that format. For example, when you compile to HTML Help the HTML Help include option is activated. Remember that include options use OR logic! The content will be included if one or more of the selected include options applies when you publish. |
You can use include options to "filter" the display of your topics in the TOC and Topic Files section of the Project Explorer. This makes it possible for you to see only the topics that will be included in a specific build, so that you can preview the results of specific build options without publishing your project.
This works both in the TOC and in Topic Files. This only filters entire topics, it does not filter conditional text tagged within your topics. The current build settings of topics are shown in the Project Explorer. Topics and chapters set to All Builds (the default) will always be included, of course – you cannot hide them. |
See also:
Variables and Conditional Output (Reference)