# IF CONDITION – How to influence a voicebot behavior depending on conditions?

The **IF condition** block is used to branch the scenario in two separate paths, depending on the condition set. In other words, you can set up a specific condition and if the condition is true then you go to one branch of your scenario, and if the condition is false then you go to the other branch of the scenario.

![IF CONDITION](/files/-Ma2YZ3xz-yO28GOS9-Q)

### :point\_right: **BASIC FUNCTIONALITIES**

The condition may be set depending on:

* Text,
* Argument (a [variable ](/quick-guide-to-creating-voicebots.-1/how-to-create-a-voicebot/what-are-variables.md)from the previous block),
* Global Variable (the variable stored throughout the whole conversation)
* Number

For example, an Argument contains the info about the date of planned payment provided by a customer, and the Global Variable (`globals.date`) contains the date where the payment should be made. The voicebot will behave differently if the customer wants to pay early, and differently if the customer is in financial trouble.&#x20;

As another example, the voicebot behavior will be different depending on whether the global variable storing name will be equal to “*Stephen*” or not.<br>


---

# Agent Instructions: 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://help.inteliwise.com/what-can-you-do-with-inteliwise-blocks/if-condition-how-to-influence-a-voicebot-behavior-depending-on-conditions.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.
