# Selectable\_if options

**URL:** <https://forum.choiceofgames.com/t/selectable-if-options/1634>\
**Category:** ChoiceScript Help\
**Created:** [August 28, 2013, 9:37pm UTC](https://forum.choiceofgames.com/t/selectable-if-options/1634 "2013-08-28T21:37:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Proff](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/proff/32/2623_2.png) [@Proff](https://forum.choiceofgames.com/u/Proff)\
**Post date:** [August 28, 2013, 9:37pm UTC](https://forum.choiceofgames.com/t/selectable-if-options/1634/1 "2013-08-28T21:37:27Z")

</div>

Is there any way that I can have more than one condition for a single \*selectable\_if option?

For instance, when using \*if statements, you can say:

\*if (herp = 1) and (derp = 2)  
Then this thing happens.  
\*else  
The thing just doesn’t happen.

But that else statement can be a pain when I’ve got to insert it above a couple hundred lines of code. As you probably know, when I insert that if/else statement, everything below it will need to tab to the right to be in proper syntax alignment. Is there a way I can make a statement like this that works?

\*selectable\_if (herp = 1) and (derp = 2) # Option

Thanks for the assistance! You guys and girls are fantastic.

---

<div class="post-metadata">

**Author:** ![Headhunter180](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/headhunter180/32/805_2.png) [@Headhunter180](https://forum.choiceofgames.com/u/Headhunter180)\
**Post date:** [August 28, 2013, 9:40pm UTC](https://forum.choiceofgames.com/t/selectable-if-options/1634/2 "2013-08-28T21:40:51Z")

</div>

Yes, there is, I believe I have that snippet of code somewhere around here… hold on…

---

<div class="post-metadata">

**Author:** ![Headhunter180](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/headhunter180/32/805_2.png) [@Headhunter180](https://forum.choiceofgames.com/u/Headhunter180)\
**Post date:** [August 28, 2013, 9:50pm UTC](https://forum.choiceofgames.com/t/selectable-if-options/1634/3 "2013-08-28T21:50:46Z")

</div>

Ah yes here we are (well not exactly but close): \*selectable\_if ((Variable= “Herp”) or (Variable= “Derp”))

(I have to thank AlexCosaraca for that little piece of genius)

In your case all you’d need to is substitute the “or” for + (I believe, best way would be to check out the Choice Script Wiki).

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [August 28, 2013, 9:53pm UTC](https://forum.choiceofgames.com/t/selectable-if-options/1634/4 "2013-08-28T21:53:02Z")

</div>

Does \*selectable\_if ((herp=1) and (derp=2)) work?

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [August 28, 2013, 9:53pm UTC](https://forum.choiceofgames.com/t/selectable-if-options/1634/5 "2013-08-28T21:53:35Z")

</div>

Hah! Headhunter got in there first. 🙂

---

<div class="post-metadata">

**Author:** ![Proff](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/proff/32/2623_2.png) [@Proff](https://forum.choiceofgames.com/u/Proff)\
**Post date:** [August 28, 2013, 9:57pm UTC](https://forum.choiceofgames.com/t/selectable-if-options/1634/6 "2013-08-28T21:57:04Z")

</div>

Genius! Thanks so much.
