# IF block in Flow not working

**URL:** <https://community.postman.com/t/if-block-in-flow-not-working/58999>\
**Category:** Help Hub\
**Tags:** variables, if-else, postman-flows\
**Created:** [March 19, 2024, 12:19pm UTC](https://community.postman.com/t/if-block-in-flow-not-working/58999 "2024-03-19T12:19:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![legiuffre](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@legiuffre](https://community.postman.com/u/legiuffre)\
**Post date:** [March 19, 2024, 12:19pm UTC](https://community.postman.com/t/if-block-in-flow-not-working/58999/1 "2024-03-19T12:19:06Z")

</div>

Hello Postman community

I am struggling to understand how the IF blocks work within Postman Flows because it doesn’t work as I expected it to and I might be doing something incorrectly.

Here is my if setup:  
 ![2024-03-19 07_16_48-Zoho CRM Sales Invoice to Netsuite Sales Orders 2.0 - Team REL](https://us1.discourse-cdn.com/getpostman/original/3X/e/c/ec2b8039f4c8bbe3710a265e739be4386dab60ce.png)

The n\_customerid variable is set according to the logs. How do I make this so if n\_customerid has a value in it, to proceed on with the Flow?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [March 19, 2024, 5:12pm UTC](https://community.postman.com/t/if-block-in-flow-not-working/58999/2 "2024-03-19T17:12:46Z")

</div>

Hi @legiuffre

The If Block needs two values, one of which you have provided with cust\_id and the other is the data port needs a value to sent through. Since you aren’t using the value, it doesn’t matter what it is (can just be a string of whatever). The If Block works like a gate to route a value to either the THEN or ELSE ports but right now it’s empty.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [March 22, 2024, 5:13pm UTC](https://community.postman.com/t/if-block-in-flow-not-working/58999/3 "2024-03-22T17:13:39Z")

</div>

Closed on March 22, 2024, 5:13pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
