# "IF" returns error for false result (what is expected behaviour?)

**URL:** <https://community.weweb.io/t/if-returns-error-for-false-result-what-is-expected-behaviour/808>\
**Category:** How do I?\
**Created:** [July 16, 2022, 8:13am UTC](https://community.weweb.io/t/if-returns-error-for-false-result-what-is-expected-behaviour/808 "2022-07-16T08:13:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [July 17, 2022, 10:40am UTC](https://community.weweb.io/t/if-returns-error-for-false-result-what-is-expected-behaviour/808/3 "2022-07-17T10:40:45Z")

</div>

> [@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/if-returns-error-for-false-result-what-is-expected-behaviour/808)._
