# Using "or" and "and" together in if statement

**URL:** <https://forum.choiceofgames.com/t/using-or-and-and-together-in-if-statement/118016>\
**Category:** ChoiceScript Help\
**Created:** [May 9, 2022, 3:00pm UTC](https://forum.choiceofgames.com/t/using-or-and-and-together-in-if-statement/118016 "2022-05-09T15:00:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Havenstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/havenstone/32/198451_2.png) [@Havenstone](https://forum.choiceofgames.com/u/Havenstone)\
**Post date:** [May 9, 2022, 5:05pm UTC](https://forum.choiceofgames.com/t/using-or-and-and-together-in-if-statement/118016/5 "2022-05-09T17:05:44Z")

</div>

I dont think you do, actually? CS can deal with two things at a time: [Is it possible... (making or/and statements with 3+ variables) - #8 by Havenstone](https://forum.choiceofgames.com/t/is-it-possible-making-or-and-statements-with-3-variables/2411/8)

What it can’t deal with is

- three things at a time, e.g. `(sexuality = "Women") or (sexuality = "Both") or (sexuality = "Poly")` – in that case you’d need to chuck a couple of them inside a parenthesis
- orphan bits of code – for example the stray “and” at the end of `*if (sexuality = "Men") or (sexuality = "Both") and`

I think in the code shared here, it’s the second one that’s the problem.

---

_[View the full topic](https://forum.choiceofgames.com/t/using-or-and-and-together-in-if-statement/118016)._
