---
title: "Use conditional variables"
id: "use-conditional-variables"
project: "ClickHelp Knowledge Base"
url: "https://docs.clickhelp.com/articles/clickhelp-knowledge-base/use-conditional-variables"
updated: 2026-09-11T05:23:37Z
---

# Use conditional variables

Although you can’t directly change a variable’s value based on the Output Tags, there is a way to make your variables conditional: you can insert variables in a row where you need them and show only one of them with the specified Output Tag.

Here's how you can implement this approach:

1. Create a variable, each holding a unique value.
![](/resources/Storage/clickhelp-knowledge-base/screenshots/use-conditional-variables/variables-value.png)
2. Insert these variables in a row where you need them.
![](/resources/Storage/clickhelp-knowledge-base/screenshots/use-conditional-variables/inserted-variables.png)
3. In the source view, [add conditions to these variables](https://clickhelp.com/software-documentation-tool/user-manual/dynamic-conditional-content.html#h2__632524754). It will look something like this:

```html
<ch:var name="platform1" ch:include="Windows"/>
```


As a result, you will have only one of the values present when you specify an Output Tag:
![](/resources/Storage/clickhelp-knowledge-base/screenshots/use-conditional-variables/output-tag-preview.png)
* * *
  
 *The information and examples in this Knowledge Base are presented "as is" and for informational purposes only — we do not provide Technical Support for it. Neither can we guarantee that the examples provided will work as intended in your particular scenario, nor do we provide assistance in customizing these examples to fit your use case.*