# Is it possible to not have a false return, or have a in an Ignition expression if statement?

**URL:** <https://forum.inductiveautomation.com/t/is-it-possible-to-not-have-a-false-return-or-have-a-in-an-ignition-expression-if-statement/68578>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 13, 2023, 5:11pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-not-have-a-false-return-or-have-a-in-an-ignition-expression-if-statement/68578 "2023-01-13T17:11:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SOPerator](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@SOPerator](https://forum.inductiveautomation.com/u/SOPerator)\
**Post date:** [January 13, 2023, 5:11pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-not-have-a-false-return-or-have-a-in-an-ignition-expression-if-statement/68578/1 "2023-01-13T17:11:43Z")

</div>

I have a Multistate Button that I would like to have locked to a certain control value when a client tag reads as a certain value. I thought I'd accomplish this by binding the control value to an expression that says if the tag is equal to the value I'm looking for, the control value will be 2 (what I want to lock it down to), but I'm not sure what to put for the falseReturn value to tell it to just leave the value as it is.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 13, 2023, 5:33pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-not-have-a-false-return-or-have-a-in-an-ignition-expression-if-statement/68578/2 "2023-01-13T17:33:16Z")

</div>

You cannot.

Instead, consider disabling the control component under that condition. Perhaps use a property change event script on that to write the locked value when the component is disabled.

---

<div class="post-metadata">

**Author:** ![SOPerator](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@SOPerator](https://forum.inductiveautomation.com/u/SOPerator)\
**Post date:** [January 13, 2023, 5:55pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-not-have-a-false-return-or-have-a-in-an-ignition-expression-if-statement/68578/3 "2023-01-13T17:55:42Z")

</div>

This is a great workaround, thank you!
