# If Statement

**URL:** <https://forum.inductiveautomation.com/t/if-statement/6102>\
**Category:** Ignition\
**Created:** [March 26, 2013, 1:57am UTC](https://forum.inductiveautomation.com/t/if-statement/6102 "2013-03-26T01:57:14Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 31, 2020, 6:55pm UTC](https://forum.inductiveautomation.com/t/if-statement/6102/15 "2020-01-31T18:55:39Z")

</div>

> [@AFULLER](#):
>
> should we look at the switch statement or binEnum

Use [switch](https://docs.inductiveautomation.com/display/DOC80/switch) or [case](https://docs.inductiveautomation.com/display/DOC80/case) to get different results for different values of a single tag/property. Use [binEnum](https://docs.inductiveautomation.com/display/DOC80/binEnum) (to get index of first true condition) or [binEnc](https://docs.inductiveautomation.com/display/DOC80/binEnc) (to get a single value representing state of all conditions) for multiple true/false conditions.

---

_[View the full topic](https://forum.inductiveautomation.com/t/if-statement/6102)._
