# \*selectable\_if not

**URL:** <https://forum.choiceofgames.com/t/selectable-if-not/21431>\
**Category:** ChoiceScript Help\
**Created:** [October 26, 2016, 6:06pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431 "2016-10-26T18:06:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:06pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/1 "2016-10-26T18:06:02Z")

</div>

Sorry, I’m tired. Checked wiki, forum and tutorial… might have missed something

Could someone please link me to something that says whether a variant of \*selectable\_if not works?

Current error message: path\_who\_are\_you line 243: Couldn’t parse the line after \*selectable\_if: not (mara = “Panda”)

```
  *selectable_if not (mara = "Dormouse") 
    #…trying to beat my last cast; I want to toss a rock clear to the other side of the bridge this time.
      It is exhilarating to stand so close to oblivion, twirling and spinning, then launching a pebble as far as you can out into the void.

```

There are several other spirit animals, and I’d prefer not to have to list them all whenever I use this. So not:

```
*selectable_if (((mara = "Courser") or (mara = "Wolf")) or (mara = "Panda") 

```

and so on for the other animals.

---

<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:** [October 26, 2016, 6:11pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/2 "2016-10-26T18:11:24Z")

</div>

How about

\*selectable\_if (mara != “Dormouse”)

Does that work?

If not then [If | ChoiceScript Wiki | Fandom](http://choicescriptdev.wikia.com/wiki/If) says

> N.B: \*If not (var) will work correctly only if this check occupies a line of its own. For example, in the following code the ‘not’ will be completely ignored and would actually display that #Option text if (var) is in fact true:

It might be the same problem happening for selectable if?

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:13pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/3 "2016-10-26T18:13:52Z")

</div>

Hmm never seen that. Thanks for the suggestion.

Error message now reads:  
path\_who\_are\_you line 243: Couldn’t parse the line after \*selectable\_if: not (mara != “Panda”)

So appears not to

EDIT:  
Still catching up with your edit - I believe it is on a different line, as suggested

```
  *selectable_if not (mara != "Dormouse") 
    #…trying to beat my last cast; I want to toss a rock clear to the other side of the bridge this time.
      It is exhilarating to stand so close to oblivion, twirling and spinning, then launching a pebble as far as you can out into the void.

```

---

<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:** [October 26, 2016, 6:14pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/4 "2016-10-26T18:14:29Z")

</div>

Does the \*selectable\_if (mara=“panda”) work?

(Normally I’d be using the ide to work this out but it doesn’t work anymore) ☹

---

<div class="post-metadata">

**Author:** ![Lithophene](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lithophene/32/112249_2.png) [@Lithophene](https://forum.choiceofgames.com/u/Lithophene)\
**Post date:** [October 26, 2016, 6:15pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/5 "2016-10-26T18:15:19Z")

</div>

What if you remove the space after not? Like `selectable_if not(mara = "Dormouse")`

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:18pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/6 "2016-10-26T18:18:32Z")

</div>

No…

> [@FairyGodfeather](#):
>
> Does the \*selectable\_if (mara=“panda”) work?

Error message:  
path\_who\_are\_you line 243: Couldn’t parse the line after \*selectable\_if: (mara=“Panda”)

---

<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:** [October 26, 2016, 6:19pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/7 "2016-10-26T18:19:57Z")

</div>

Does

\*selectable\_if not (mara = “Dormouse”) #…trying to beat my last cast; I want to toss a rock clear to the other side of the bridge this time.

work? With the # on the same line?

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:21pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/8 "2016-10-26T18:21:16Z")

</div>

Apparently not

Error message:  
path\_who\_are\_you line 243: Couldn’t parse the line after \*selectable\_if: not(mara = “Panda”)

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:23pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/9 "2016-10-26T18:23:43Z")

</div>

Nope, darn it 😏

Error message:

path\_who\_are\_you line 243: Couldn’t parse the line after \*selectable\_if: not(mara = “Panda”) #…the sounds of the air gusting close, and of the water running furlongs below.

_But it does work with the ‘not’ taken out._

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [October 26, 2016, 6:26pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/10 "2016-10-26T18:26:01Z")

</div>

Is it the hyphen after selectable\_if, perhaps?

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:28pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/11 "2016-10-26T18:28:04Z")

</div>

Ah no! The editor discovers my shame (having returned to chapter 1 when I should be working on sections further ahead… eek)

Stupid question:

@Fiogan to which hyphen are you referring?

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:32pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/12 "2016-10-26T18:32:05Z")

</div>

Does ( \*selectable\_if not ) not work with \*fake\_choice?

```
*fake_choice
  *selectable_if not (mara = "Panda") #…the sounds of the air gusting close, and of the water running furlongs below.
    You chase the sounds of all the life around you, whistling after them and spinning their cadences with your voice. You catch at the bright filled twirls of the birdsongs; your notes rise up to greet them.  

    Do they listen, the birds?
    *set AA_1146 "Began enjoying songs and the sound of the world around you"
    *set edge 0
    *set earlyideal "song"
    *set marapanda + 1
  *selectable_if not (mara = "Scylla") #…family and relationships, both those lost in the past and those hoped for in your future.
    You wish that you could remember your mother and your father. Are they still out there somewhere? And if they are, do they think about you too?
    *set AA_1146 "Began thinking more about family and relationships, both past and future"
    *set edge 1
    *set earlyideal "family"
    *set maracourser + 1  
  *selectable_if not (mara = "Wolf") #…boys, mainly.
    You curl your feet and wiggle your bare toes, wondering whether the boys find them pretty. Getting older, you've discovered that if you twirl your hair in your fingers when boys speak to you, it distracts them. You like to catch them open-mouthed as you twist a lock in your hand.
    *set AA_1146 "Began thinking more about boys, attractiveness and fooling around"
    *set edge 2
    *set likes "boys"
    *set earlyideal "the less fair sex"
    *set marascylla + 1
  *selectable_if not (mara = "Wolf") #…girls, mainly.
    You ball your fists and examine your knuckles. The seneschal has thick hair on his; you're unsure whether that's an advantage in attracting girls.
    *set AA_1146 "Began thinking more about girls, attractiveness and fooling around"
    *set edge 3
    *set likes "girls"
    *set earlyideal "the fairer sex"
    *set marascylla + 1
  *selectable_if not (mara = "Courser") #…whether I really am alone, sitting here underneath this watchful blue sky."
    Your lessons teach of gods, but you can see more spirit in the dancing flocks of swallows and in the not-quite voices of the wind.
    *set AA_1146 "Began thinking more about spirituality and the world around yourself"
    *set edge 4
    *set earlyideal "spirituality"
    *set maradormouse + 1
  *selectable_if not (mara = "Dormouse") #…trying to beat my last cast; I want to toss a rock clear to the other side of the bridge this time.
    It is exhilarating to stand so close to oblivion, twirling and spinning, then launching a pebble as far as you can out into the void.
    *set AA_1146 "Began seeking excitement and testing your boundaries and abilities"
    *set edge 5
    *set earlyideal "excitement"
    *set maracourser + 1
  #[i]Return.[/i]
    *goto_scene page_turner

```

---

<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:** [October 26, 2016, 6:32pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/13 "2016-10-26T18:32:42Z")

</div>

This works for me but only if it’s the second option in a choice tree.

```
*fake_choice
    #Choice1
        Blah
    *selectable_if (mara != "panda") #…trying to beat my last cast; I want to toss a rock clear to the other side of the bridge this time.
        It is exhilarating to stand so close to oblivion, twirling and spinning, then launching a pebble as far as you can out into the void.

```

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [October 26, 2016, 6:35pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/14 "2016-10-26T18:35:06Z")

</div>

Sorry! I meant the colon after \*selectable\_if. Here’s to typing whilst distracted; the editor, too, has shame (:

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:38pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/15 "2016-10-26T18:38:20Z")

</div>

Oooh, was sure that would work

Error:  
path\_who\_are\_you line 245: Couldn’t parse the line after \*selectable\_if: (mara != “Panda”)

(PS @fiogan - there isn’t a colon in the code - I think it’s reading the selectable\_if as the command without the not)

```
*fake_choice
  #[i]Return.[/i]
    *goto_scene page_turner
  *selectable_if (mara != "Panda") 
    #…the sounds of the air gusting close, and of the water running furlongs below.
      You chase the sounds of all the life around you, whistling after them and spinning their cadences with your voice. You catch at the bright filled twirls of the birdsongs; your notes rise up to greet them.  

      Do they listen, the birds?
      *set AA_1146 "Began enjoying songs and the sound of the world around you"
      *set edge 0
      *set earlyideal "song"
      *set marapanda + 1
      *goto page_5
  *selectable_if (mara != "Scylla") 
    #…family and relationships, both those lost in the past and those hoped for in your future.
      You wish that you could remember your mother and your father. Are they still out there somewhere? And if they are, do they think about you too?
      *set AA_1146 "Began thinking more about family and relationships, both past and future"
      *set edge 1
      *set earlyideal "family"
      *set maracourser + 1  
      *goto page_5
  *selectable_if (mara != "Wolf") 
    #…boys, mainly.
      You curl your feet and wiggle your bare toes, wondering whether the boys find them pretty. Getting older, you've discovered that if you twirl your hair in your fingers when boys speak to you, it distracts them. You like to catch them open-mouthed as you twist a lock in your hand.
      *set AA_1146 "Began thinking more about boys, attractiveness and fooling around"
      *set edge 2
      *set likes "boys"
      *set earlyideal "the less fair sex"
      *set marascylla + 1
      *goto page_5
  *selectable_if (mara != "Wolf") 
    #…girls, mainly.
      You ball your fists and examine your knuckles. The seneschal has thick hair on his; you're unsure whether that's an advantage in attracting girls.
      *set AA_1146 "Began thinking more about girls, attractiveness and fooling around"
      *set edge 3
      *set likes "girls"
      *set earlyideal "the fairer sex"
      *set marascylla + 1
      *goto page_5
  *selectable_if (mara != "Courser") 
    #…whether I really am alone, sitting here underneath this watchful blue sky."
      Your lessons teach of gods, but you can see more spirit in the dancing flocks of swallows and in the not-quite voices of the wind.
      *set AA_1146 "Began thinking more about spirituality and the world around yourself"
      *set edge 4
      *set earlyideal "spirituality"
      *set maradormouse + 1
      *goto page_5
  *selectable_if (mara != "Dormouse") 
    #…trying to beat my last cast; I want to toss a rock clear to the other side of the bridge this time.
      It is exhilarating to stand so close to oblivion, twirling and spinning, then launching a pebble as far as you can out into the void.
      *set AA_1146 "Began seeking excitement and testing your boundaries and abilities"
      *set edge 5
      *set earlyideal "excitement"
      *set maracourser + 1
      *goto page_5

```

EDIT:

amended so selectable\_if not was the second choice in the choice tree

… and (ahem) took out the ‘nots’ accidentally left in from previous iteration

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [October 26, 2016, 6:42pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/16 "2016-10-26T18:42:13Z")

</div>

If you use != like @FairyGodfeather suggested , it’s a negative (does not equal), so then you don’t need the ‘not’.

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:43pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/17 "2016-10-26T18:43:52Z")

</div>

ahh ninja’d

just noticed I’d left in the nots from a previous iteration. The above message is up to date now

still broken. like my heart

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [October 26, 2016, 6:45pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/18 "2016-10-26T18:45:35Z")

</div>

Try the choices in-line with the selectable\_if?

---

<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:** [October 26, 2016, 6:47pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/19 "2016-10-26T18:47:59Z")

</div>

Just use ifs instead of selectable ifs.

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [October 26, 2016, 6:50pm UTC](https://forum.choiceofgames.com/t/selectable-if-not/21431/20 "2016-10-26T18:50:41Z")

</div>

Wah ! ! !

This worked - new error messages later in the story! So happy…

Thank you @Fiogan and @FairyGodfeather  
Alliterative heroes!

(love that Fairy gave up before the final hurdle… hehe 😉)

[Next page](https://forum.choiceofgames.com/t/selectable-if-not/21431.md?page=2)
