# Cant figure out this selectable\_if command

**URL:** <https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035>\
**Category:** ChoiceScript Help\
**Created:** [June 7, 2021, 6:19pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035 "2021-06-07T18:19:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brayden\_Keene](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/brayden_keene/32/133764_2.png) [@Brayden\_Keene](https://forum.choiceofgames.com/u/Brayden_Keene)\
**Post date:** [June 7, 2021, 6:19pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/1 "2021-06-07T18:19:31Z")

</div>

I’m having trouble with the selectable\_if command

The error I’m getting is: startup line 323: Couldn’t parse the line after \*selectable\_if: (not(Canine))#Chocolate

My code looks like this:

```
*selectable_if(not(Canine))#Chocolate

```

I am trying to have it check the species stat I have to block off an option do I have to include something like species = “Canine” or something like that?

---

<div class="post-metadata">

**Author:** ![ViIsBae](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/viisbae/32/158297_2.png) [@ViIsBae](https://forum.choiceofgames.com/u/ViIsBae)\
**Post date:** [June 7, 2021, 6:47pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/2 "2021-06-07T18:47:41Z")

</div>

It may not be the best solution, but what I always do is, for example in this instance, create a variable in startup that’s something like

\*create choco “”

then in the choice when the race is picked it would be

#Canine  
\*set nochoco “True”

Then set all the other races to  
\*set nochoco “False”

Then you should be able to do \*selectable\_if (nochoco = “False”) #Chocolate

Again, there’s probably a better way to do this, but I’m not all that savvy at coding myself and this has been my workaround thus far.

---

<div class="post-metadata">

**Author:** ![Writing\_Fever](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/writing_fever/32/269728_2.png) [@Writing\_Fever](https://forum.choiceofgames.com/u/Writing_Fever)\
**Post date:** [June 7, 2021, 6:50pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/3 "2021-06-07T18:50:29Z")

</div>

Is it all one line with no spaces like that in your code? You need to have spaces between the different parts.

EDIT:  
Something like this:

```
*if (not (insertvariablehere)) #This option will show up.
    *goto thenextpart

```

---

<div class="post-metadata">

**Author:** ![ViIsBae](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/viisbae/32/158297_2.png) [@ViIsBae](https://forum.choiceofgames.com/u/ViIsBae)\
**Post date:** [June 7, 2021, 6:57pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/4 "2021-06-07T18:57:13Z")

</div>

I also appreciate this as I never knew this. Appreciate you!

---

<div class="post-metadata">

**Author:** ![Writing\_Fever](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/writing_fever/32/269728_2.png) [@Writing\_Fever](https://forum.choiceofgames.com/u/Writing_Fever)\
**Post date:** [June 7, 2021, 6:59pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/5 "2021-06-07T18:59:54Z")

</div>

Haha, no problem! Happy to have helped! (:

---

<div class="post-metadata">

**Author:** ![Brayden\_Keene](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/brayden_keene/32/133764_2.png) [@Brayden\_Keene](https://forum.choiceofgames.com/u/Brayden_Keene)\
**Post date:** [June 8, 2021, 3:55am UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/6 "2021-06-08T03:55:44Z")

</div>

got it working, thank you

---

<div class="post-metadata">

**Author:** ![Writing\_Fever](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/writing_fever/32/269728_2.png) [@Writing\_Fever](https://forum.choiceofgames.com/u/Writing_Fever)\
**Post date:** [June 8, 2021, 5:11pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/7 "2021-06-08T17:11:31Z")

</div>

No problem – I’m glad you were able to get it working!

---

<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:** [June 8, 2021, 5:37pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/8 "2021-06-08T17:37:40Z")

</div>

if it is a true/false variable

```
*selectable_if (var = false) #option

```

also works

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/choiceofgames/original/3X/e/f/efe1497a762edecdb6d569a1c4abee87508bf002.png) [@system](https://forum.choiceofgames.com/u/system)\
**Post date:** [June 9, 2021, 5:37pm UTC](https://forum.choiceofgames.com/t/cant-figure-out-this-selectable-if-command/102035/9 "2021-06-09T17:37:57Z")

</div>

Closed on June 9, 2021, 5:37pm UTC

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.
