> For the complete documentation index, see [llms.txt](https://docs.trysavvy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trysavvy.com/how-tos/logic-how-tos/how-to-set-show-hide-conditions.md).

# How to set show/hide conditions

{% embed url="<https://app.arcade.software/share/3y0sH6QjU2LyUgq8Anga>" %}

{% hint style="info" %}
Conditions are based on variables, these variables could be user inputs or other data like location or URL parameters. In this example we are basing out conditions on a user's input.&#x20;
{% endhint %}

{% hint style="warning" %}
Conditions are always set when to show, meaning the component is going to be shown when the condition returns TRUE.
{% endhint %}

1. With the "Designer" card opened, select the element you want to set the condition for.
2. In the "Show/hide" tab of the "Designer" card, click the "Add condition" button.
3. In the first dropdown, select from the list of component keys the variable on which the condition is going to be based.
4. Then select an operator from the second dropdown. (E.g.&#x20;
5. Depending on the operator you've selected you might also need to set a third parameter for the condition like in this example case (the "Option 2" button)&#x20;

### Related docs:

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.trysavvy.com/how-tos/logic-how-tos/how-to-set-show-hide-conditions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
