# How many parenthesis to get this to work?

**URL:** <https://forum.choiceofgames.com/t/how-many-parenthesis-to-get-this-to-work/34199>\
**Category:** ChoiceScript Help\
**Created:** [January 12, 2018, 3:07pm UTC](https://forum.choiceofgames.com/t/how-many-parenthesis-to-get-this-to-work/34199 "2018-01-12T15:07:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 12, 2018, 3:07pm UTC](https://forum.choiceofgames.com/t/how-many-parenthesis-to-get-this-to-work/34199/1 "2018-01-12T15:07:27Z")

</div>

I’ve run into a major problem:

```
*if ((spouse = "husband") or (spouse = "wife") or (spouse = "other") or (spouse = "unknown") or (spouse = "otherknown") or (spouse = "otherhated"))

```

The error message is that it expected no more tokens.  
How do I get this to work?  
I searched through the forums, but I haven’t yet found a topic on such an amount 😕  
help?

---

<div class="post-metadata">

**Author:** ![ParrotWatcher](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/parrotwatcher/32/49963_2.png) [@ParrotWatcher](https://forum.choiceofgames.com/u/ParrotWatcher)\
**Post date:** [January 12, 2018, 3:11pm UTC](https://forum.choiceofgames.com/t/how-many-parenthesis-to-get-this-to-work/34199/2 "2018-01-12T15:11:06Z")

</div>

I think you need one set of parentheses per pair, so:

`*if ((((((spouse = "husband") or (spouse = "wife")) or (spouse = "other")) or (spouse = "unknown")) or (spouse = "otherknown")) or (spouse = "otherhated"))`

I think that’s the right number… 🤔

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 12, 2018, 3:14pm UTC](https://forum.choiceofgames.com/t/how-many-parenthesis-to-get-this-to-work/34199/3 "2018-01-12T15:14:47Z")

</div>

thanks 😃  
I still think I’ll never really wrap my head around these Dx

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [January 12, 2018, 4:05pm UTC](https://forum.choiceofgames.com/t/how-many-parenthesis-to-get-this-to-work/34199/4 "2018-01-12T16:05:11Z")

</div>

Might it be easier in this instance to check that spouse is NOT equal to something?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 12, 2018, 4:22pm UTC](https://forum.choiceofgames.com/t/how-many-parenthesis-to-get-this-to-work/34199/5 "2018-01-12T16:22:02Z")

</div>

you might be on to something there  
_crawls under couch in embarrassment_
