# If/Else

**URL:** <https://forums.knack.com/t/if-else/6705>\
**Category:** Get Answers\
**Created:** [July 10, 2019, 3:09pm UTC](https://forums.knack.com/t/if-else/6705 "2019-07-10T15:09:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KimberlyNi07205](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@KimberlyNi07205](https://forums.knack.com/u/KimberlyNi07205)\
**Post date:** [July 10, 2019, 3:09pm UTC](https://forums.knack.com/t/if-else/6705/1 "2019-07-10T15:09:27Z")

</div>

Hello,

I'm looking for a workaround to using some If/Else logic, and I'm not sure if it's possible.

I'm creating a database for a consortium of 24 communities. Anyone who is currently living in, or was originally from (regardless of where they currently live), one of the 24 communities can participate in the DB.

I have a form with these two questions:

1. Which community are you originally from?
2. Which community do you currently live in?

Both contain the same drop-down list of 24 communities, plus "None of the above". (It's impossible to ever respond "None of the above" to BOTH questions.)

I'm displaying separate tables for each community. Currently, if someone is \*from\* Community A, but \*lives\* in Community B, they will appear in two tables, essentially being counted twice.

I would like to know if this is possible:

Populate a third field called "Community":

- If answer to Q2 above **is not**"None of the above" use the answer from Q2.
- If answer to Q2 **is**"None of the above", use the answer from Q1.

I originally thought I could do this via Text Formula, but the Functions seem quite limited. Unless I'm missing a more advanced reference than what is on this page:

[https://support.knack.com/hc/en-us/articles/115005002328-Text-Formula-Functions](https://forums.knack.com/hc/en-us/articles/115005002328-Text-Formula-Functions)

Thank you so much for your help!

---

<div class="post-metadata">

**Author:** ![KimberlyNi07205](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@KimberlyNi07205](https://forums.knack.com/u/KimberlyNi07205)\
**Post date:** [July 16, 2019, 5:40pm UTC](https://forums.knack.com/t/if-else/6705/2 "2019-07-16T17:40:59Z")

</div>

Yes, actually, that ended up being the solution. I had tried that, but couldn't get it working the way I needed it to, but it turns out I wasn't using the conditions correctly. I also hadn't realized the order of the questions in the Builder can affect how it works. But it's all working now, thanks!

---

<div class="post-metadata">

**Author:** ![TimLohnes65432](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@TimLohnes65432](https://forums.knack.com/u/TimLohnes65432)\
**Post date:** [July 15, 2019, 9:04pm UTC](https://forums.knack.com/t/if-else/6705/3 "2019-07-15T21:04:39Z")

</div>

Can you just use Conditional Expressions on Community field?

Sounds like it should be pretty straightforward, unless I'm misreading something. Lots of options for Is or Is Not.
