Template administrators Microsoft Word How to use a Yes/No variable?

How to use a Yes/No variable?

Published on: July 4, 2024
Edited on: November 28, 2024

In addition to using switch and if-else statements, you can also use a Yes/No variable to show or hide specific elements. This article covers everything you need to know about the Yes/No variable and how to use it within a template.

Inserting a Yes/No variable

To insert a Yes/No variable, you first need to edit the desired template. Then, you must create a Yes/No variable. Select the Yes/No variable by clicking on it. It should look like this:

Once you have selected the Yes/No variable, you can select an element (e.g., a piece of text) in the document. After selecting an element, click on the 'Play' icon (number 2 in the image above). You can then choose 'Insert' from the menu.

Info icon

Tip!

You can also select an element (e.g., a piece of text) and then double-click (relatively quickly) on the Yes/No variable to insert it.

Example of a Yes/No variable

After adding a Yes/No variable, it will appear as follows:

[ IF YesNoVariable][ ENDIF]

When using the Yes/No variable, it should look like this:

[IF YesNoVariable]
Show this if the Yes/No variable is set to YES
[ENDIF]