Using Variables

<< Click to Display Table of Contents >>

Navigation:  More Advanced Procedures >

Using Variables

Variables are used to insert text that may change in your output when you publish your project. They are ideal for things like program names and version numbers. To update, you just need to edit the variable definition and recompile. Predefined variables make it easy to insert things like the current date, the title of your help project and so on.

Variables have no effective length limit. You are unlikely to be able to enter more than 2 gigabytes of text in the variable definition fields. User-defined variables can contain either plain text or HTML code. This allows you to use variables to insert HTML code in your HTML templates. Help+Manual supports both a wide selection of predefined variables and user-defined variables.

You can set different values for variables in individual topics and redefine some or all of your variables with a list of values stored in an external text file when you publish your project.

 

tipbulbUsing variables

Where you can use variables

User-defined variables

Global predefined variables

Inserting variables in topics

Inserting variables in other locations

Redefining variables

The power of editable variables

 

See also:

Variables in HTML templates

Variables and Conditional Output (Reference)