# Check a field of a non-existent item in the database \*\*

**URL:** <https://community.weweb.io/t/check-a-field-of-a-non-existent-item-in-the-database/7512>\
**Category:** Ask us anything\
**Created:** [March 11, 2024, 6:25pm UTC](https://community.weweb.io/t/check-a-field-of-a-non-existent-item-in-the-database/7512 "2024-03-11T18:25:03Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [March 12, 2024, 7:33am UTC](https://community.weweb.io/t/check-a-field-of-a-non-existent-item-in-the-database/7512/6 "2024-03-12T07:33:18Z")

</div>

all the parameters of an if formula are evaluated because it’s a function. You need to use an if else statement ina workflow or a [ternary operaror](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_operator) in a formula to actually evaluate only one of the two options

> [@All instructions in a condition are executed](https://community.weweb.io/t/all-instructions-in-a-condition-are-executed/797/4):
>
> wwFormulas.if is a function not a if else statement. Assignments or other functions in the parameters are all executed. You should use an if else statement.

---

_[View the full topic](https://community.weweb.io/t/check-a-field-of-a-non-existent-item-in-the-database/7512)._
