> For the complete documentation index, see [llms.txt](https://docs.stylemixthemes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stylemixthemes.com/cost-calculator-builder/conditional-system/conditional-system.md).

# Condition Creating Example

{% embed url="<https://youtu.be/xUwxooRP9Mg?si=-4LEAdcqtv-cqA0S&t=1122>" %}

Let's take an example of making the conditional system more clear.

Below you can see the initial view of the **Loan Form** sample calculator without any conditions.

![](/files/i51bbx8gXw1L2ExNfccG)

For example, you want to create a condition for the **Annual Interest Rate** depending on the **Loan Amount**. So, you should create a link from the Loan Amount to the Annual Interest Rate.

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

**Condition:** if the loan amount is greater than 15 000, set the annual interest rate to 10; if the loan amount is less than 5 000, hide the annual interest rate element.

Below you can see how it is done:

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

Now it is time to see the result. The first picture is for the first condition. When the loan amount is set to 16 000, the annual interest rate should be set to 10.

![](/files/BCTkqjKwwNFdQnr9Fo30)

The second picture is for the second condition. When the loan amount is set to 3 000, the annual interest rate should be hidden.

![](/files/78fDs0aHppx2ojjHJfmM)

In a similar manner, you can create different conditions for calculator elements, improving its functionality.


---

# 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.stylemixthemes.com/cost-calculator-builder/conditional-system/conditional-system.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.
