# If-function with only two parameters

**URL:** <https://community.baserow.io/t/if-function-with-only-two-parameters/9300>\
**Category:** Feature Ideas\
**Tags:** feature-idea, baserow, formula\
**Created:** [January 27, 2025, 3:03pm UTC](https://community.baserow.io/t/if-function-with-only-two-parameters/9300 "2025-01-27T15:03:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chantal](https://community.baserow.io/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@chantal](https://community.baserow.io/u/chantal)\
**Post date:** [January 27, 2025, 3:03pm UTC](https://community.baserow.io/t/if-function-with-only-two-parameters/9300/1 "2025-01-27T15:03:44Z")

</div>

It would be very helpful to also have an if-function with only two parameters, so `if(bool, any)` instead of or rather additionally to `if(bool, any1, any2)`.

---

<div class="post-metadata">

**Author:** ![olgatrykush](https://community.baserow.io/user_avatar/community.baserow.io/olgatrykush/32/219_2.png) [@olgatrykush](https://community.baserow.io/u/olgatrykush)\
**Post date:** [January 29, 2025, 12:14pm UTC](https://community.baserow.io/t/if-function-with-only-two-parameters/9300/2 "2025-01-29T12:14:32Z")

</div>

Hi @chantal! Noted — I’ll discuss your proposal with the team. 👌

---

<div class="post-metadata">

**Author:** ![olgatrykush](https://community.baserow.io/user_avatar/community.baserow.io/olgatrykush/32/219_2.png) [@olgatrykush](https://community.baserow.io/u/olgatrykush)\
**Post date:** [February 6, 2025, 11:18am UTC](https://community.baserow.io/t/if-function-with-only-two-parameters/9300/3 "2025-02-06T11:18:20Z")

</div>

Hi @chantal, I have a quick follow-up question: what value should be returned if false?

---

<div class="post-metadata">

**Author:** ![chantal](https://community.baserow.io/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@chantal](https://community.baserow.io/u/chantal)\
**Post date:** [February 16, 2025, 7:39am UTC](https://community.baserow.io/t/if-function-with-only-two-parameters/9300/4 "2025-02-16T07:39:37Z")

</div>

Sorry for the not so quick reply! 😅 My idea would be to return a null value or maybe the current value of the field?

---

<div class="post-metadata">

**Author:** ![olgatrykush](https://community.baserow.io/user_avatar/community.baserow.io/olgatrykush/32/219_2.png) [@olgatrykush](https://community.baserow.io/u/olgatrykush)\
**Post date:** [February 17, 2025, 1:53pm UTC](https://community.baserow.io/t/if-function-with-only-two-parameters/9300/5 "2025-02-17T13:53:49Z")

</div>

Hi @chantal! Thanks for your response. I’ll discuss the request again and get back to you on this. 🙂

---

<div class="post-metadata">

**Author:** ![olgatrykush](https://community.baserow.io/user_avatar/community.baserow.io/olgatrykush/32/219_2.png) [@olgatrykush](https://community.baserow.io/u/olgatrykush)\
**Post date:** [February 19, 2025, 3:14pm UTC](https://community.baserow.io/t/if-function-with-only-two-parameters/9300/6 "2025-02-19T15:14:02Z")

</div>

Hi @chantal, we think NULL is the better option and have accepted this request. 🙂
