# If condition

**URL:** <https://community.make.com/t/if-condition/58227>\
**Category:** Questions\
**Tags:** error, functions\
**Created:** [October 18, 2024, 9:26am UTC](https://community.make.com/t/if-condition/58227 "2024-10-18T09:26:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos4](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Carlos4](https://community.make.com/u/Carlos4)\
**Post date:** [October 18, 2024, 9:26am UTC](https://community.make.com/t/if-condition/58227/1 "2024-10-18T09:26:57Z")

</div>

Hello,  
I’m practicing with error handling.

I added repeater 1 to 3  
output bundle:  
[  
{  
“i”: 1  
},  
{  
“i”: 2  
},  
{  
“i”: 3  
}  
]

In the HTTP make request module  
In the URL field:  
[https://httpstat.us/](https://httpstat.us/){{if(9.i + “=2”; 400; 200)}}

When I execute:  
“url”: “[https://httpstat.us/400](https://httpstat.us/400)”  
It’s wierd but the if condition is always returning 400

- 
#### Operation 1

Input

- Bundle 1Collection

empty

```
* Query String<small>Array</small>

* URL

```

[https://httpstat.us/400](https://httpstat.us/400)

```
* Request compressed content

```

true

```
* Method

```

get

```
* Headers<small>Array</small>

* Timeout

```

empty

```
* Use Mutual TLS

```

false

```
* Password

```

empty

```
* User name

```

empty

```
* Body type

```

empty

```
* Serialize URL

```

false

```
* Share cookies with other HTTP modules

```

false

```
* Parse response

```

false

```
* Follow redirect

```

true

```
* Disable serialization of multiple same query string keys as arrays

```

false

```
* Follow all redirect

```

false

```
* Reject connections that are using unverified (self-signed) certificates

```

true

Handled error

- type

DataError

- message

Error: 400 Bad Request

- detail

400 Bad Request

- Data size: 0

#### Operation 2

Input

- Bundle 1Collection

empty

```
* Query String<small>Array</small>

* URL

```

[https://httpstat.us/400](https://httpstat.us/400)

```
* Request compressed content

```

true

```
* Method

```

get

```
* Headers<small>Array</small>

* Timeout

```

empty

```
* Use Mutual TLS

```

false

```
* Password

```

empty

```
* User name

```

empty

```
* Body type

```

empty

```
* Serialize URL

```

false

```
* Share cookies with other HTTP modules

```

false

```
* Parse response

```

false

```
* Follow redirect

```

true

```
* Disable serialization of multiple same query string keys as arrays

```

false

```
* Follow all redirect

```

false

```
* Reject connections that are using unverified (self-signed) certificates

```

true

Handled error

- type

DataError

- message

Error: 400 Bad Request

- detail

400 Bad Request

- Data size: 0

#### Operation 3

Input

- Bundle 1Collection

empty

```
* Query String<small>Array</small>

* URL

```

[https://httpstat.us/400](https://httpstat.us/400)

```
* Request compressed content

```

true

```
* Method

```

get

```
* Headers<small>Array</small>

* Timeout

```

empty

```
* Use Mutual TLS

```

false

```
* Password

```

empty

```
* User name

```

empty

```
* Body type

```

empty

```
* Serialize URL

```

false

```
* Share cookies with other HTTP modules

```

false

```
* Parse response

```

false

```
* Follow redirect

```

true

```
* Disable serialization of multiple same query string keys as arrays

```

false

```
* Follow all redirect

```

false

```
* Reject connections that are using unverified (self-signed) certificates

```

true

Handled error

- type

DataError

- message

Error: 400 Bad Request

- detail

400 Bad Request

I tried using a variable for the condition but i still have the same problem.  
What I’m missing?  
Thank you  
Regards.

 ![Screenshot 2024-10-18 at 13-46-37 Make Intermediate 5-2 Unit 1 Make](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/e/ceb392d5a286bc68338895f0371ed6411dcb9943.jpeg)  
 ![Screenshot 2024-10-18 at 13-46-16 Make Intermediate 5-2 Unit 1 Make](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/1/1177816eeb8705330d93750148c8b3ab2e1caadb.jpeg)

---

<div class="post-metadata">

**Author:** ![dilipborad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/dilipborad/32/53211_2.png) [@dilipborad](https://community.make.com/u/dilipborad)\
**Post date:** [October 18, 2024, 9:54am UTC](https://community.make.com/t/if-condition/58227/3 "2024-10-18T09:54:40Z")

</div>

Hello @Carlos4,  
Please share a screenshot.

---

<div class="post-metadata">

**Author:** ![Carlos4](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Carlos4](https://community.make.com/u/Carlos4)\
**Post date:** [October 18, 2024, 11:53am UTC](https://community.make.com/t/if-condition/58227/4 "2024-10-18T11:53:31Z")

</div>

Added the screenshots,

[https://httpstat.us/](https://httpstat.us/){{if(9.i + “=2”; 400; 200)}}

It is supposed to set a variable data in the tools when repeater is 1 an 3  
and receive the 200 ok response, right?

What I’m missing?

 ![Screenshot 2024-10-18 at 13-50-18 Make Intermediate 5-2 Unit 1 Make](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/8/58f3fece45e12d532e6362669164f1d418937aa3.png)

 ![Screenshot 2024-10-18 at 13-52-21 Make Intermediate 5-2 Unit 1 Make](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/7/27d1625f16f96cd9f528f7d88957c409fb4188d9.jpeg)

---

<div class="post-metadata">

**Author:** ![dilipborad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/dilipborad/32/53211_2.png) [@dilipborad](https://community.make.com/u/dilipborad)\
**Post date:** [October 18, 2024, 12:15pm UTC](https://community.make.com/t/if-condition/58227/5 "2024-10-18T12:15:08Z")

</div>

Hello @Carlos4,  
Check function syntax first and how to use function syntax with its default toolbox.

In your current issue, it’s just **“=”** use from **Make’s default toolbox** later you can use a shortcut when you use it more.

 ![Make_function_syntax](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/d/1d965e9122dc059eb2488706234ba070a3e2c1cc.png)

👍

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 16, 2025, 1:25pm UTC](https://community.make.com/t/if-condition/58227/6 "2025-01-16T13:25:24Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


