> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/template-editor/miscellaneous/conditional.md).

# Conditional

## ![](/files/356DPXt3LEF9uZ2tg1d5) Introduction

A Conditional is a control that you can use on your canvas to show information based on a true/false(or unknown) conditional expression.

The conditional can be added onto a template by dragging the conditional icon to the canvas or by drag and drop of a boolean datafield and selecting conditional block. When using a boolean field the conditional is created with the field as condition where the content of the conditional is shown when the boolean field holds the true value.&#x20;

How to implement Conditionals together with the tabbar has been extensively covered as part of the illustration in the page for [Tabbars](/platform/template-editor/miscellaneous/tabbar.md).&#x20;

## Properties

<figure><img src="/files/iDn93z5YGEpEqoYiJMBD" alt=""><figcaption></figcaption></figure>

***Show when true*** – when the condition entered returns true, then this part is shown.

***Show when false*** – when the condition entered returns false, then this part is shown.

***Show when unknown*** – when the condition does not evaluate properly - perhaps because a field doesn’t contain data or for some other reason - then this part is shown.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wem.io/platform/template-editor/miscellaneous/conditional.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
