About build tag expressions

When using build tags with projects, you enter build expressions that include or exclude topics from the project. All topics not assigned to build tags are automatically included in the project.

Build expressions consist of build tag names and the following Boolean operators:

If you want the output to include:

Do this:

All topics assigned to a single build tag

Enter the name of the build tag:
For example: Tag1

All topics assigned to multiple build tags

Use AND with the build tag names:
Tag2 AND Tag3

All topics assigned to any combination of named build tags

Use OR with the build tag names:
Tag3 OR Tag4

All topics except those assigned to a single build tag

Use NOT with the build tag name:
NOT Tag2

All topics except those assigned to multiple build tags

Use NOT in combination with AND:
Tag1 AND NOT Tag2 AND NOT Tag4

 

Tips:

  • If you want to keep the build tags in your project and generate output that includes all topics in your project, whether they use build tags or not, delete the text from the Build Expression text box and then compile.

  • For Microsoft HTML Help, you can assign a unique name to the .CHM file you are creating with the build tags. From the File menu, select Project Settings - Compile tab. In Compiled File, enter the name of the .CHM file you want to create.