# Couldn't parse the line after \*selectable\_if: jab

**URL:** <https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069>\
**Category:** ChoiceScript Help\
**Created:** [March 13, 2015, 9:13pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069 "2015-03-13T21:13:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![SilverRain](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SilverRain](https://forum.choiceofgames.com/u/SilverRain)\
**Post date:** [March 13, 2015, 9:13pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/1 "2015-03-13T21:13:01Z")

</div>

Error:  
Couldn’t parse the line after \*selectable\_if: jab

Does anyone know whats wrong with this?

\*choice  
\_\*selectable\_if jab  
\_\_\*selectable\_if dieroll \> 10  
\_\_\_#Jab  
\_\_\_\_\*set did “jab”  
\_\_\_\_\*set dmg 5  
\_\_\_\_\*goto feedback

---

<div class="post-metadata">

**Author:** ![SilverRain](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SilverRain](https://forum.choiceofgames.com/u/SilverRain)\
**Post date:** [March 13, 2015, 9:13pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/2 "2015-03-13T21:13:59Z")

</div>

Also, it’s properly indented. I don’t know why the indent isn’t showing

---

<div class="post-metadata">

**Author:** ![ballmot](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/ballmot/32/198924_2.png) [@ballmot](https://forum.choiceofgames.com/u/ballmot)\
**Post date:** [March 13, 2015, 9:15pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/3 "2015-03-13T21:15:48Z")

</div>

what kind of variable is “jab”?

true/false?

numeral?

text?

Also, I don’t think you should use \_\_\_\_ before your commands, replace those with blank spaces and it might work

---

<div class="post-metadata">

**Author:** ![SilverRain](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SilverRain](https://forum.choiceofgames.com/u/SilverRain)\
**Post date:** [March 13, 2015, 9:16pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/4 "2015-03-13T21:16:09Z")

</div>

And for some reason, even though I double checked in edit mode, it sayes “_selectable_if” in stead of “selectable\_if”

---

<div class="post-metadata">

**Author:** ![SilverRain](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SilverRain](https://forum.choiceofgames.com/u/SilverRain)\
**Post date:** [March 13, 2015, 9:19pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/5 "2015-03-13T21:19:02Z")

</div>

Jab is a boolean. I should explain whats up. Okay, so right now I’m working on a book and in this part, the machine has to check if the player 1) knows the attack jab and 2) rolled higher than a 10 on a 100 sided die (This is how some attacks are avaliable and some aren’t)

---

<div class="post-metadata">

**Author:** ![SilverRain](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SilverRain](https://forum.choiceofgames.com/u/SilverRain)\
**Post date:** [March 13, 2015, 9:20pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/6 "2015-03-13T21:20:07Z")

</div>

Jab is true if the player knows the attack. The player only sees the option if they know the attack and it is avaliable. And I put the \_s there to show indenting, since it appears that the question automatically trims whitespace. The \_s are spaces in the real file.

---

<div class="post-metadata">

**Author:** ![ballmot](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/ballmot/32/198924_2.png) [@ballmot](https://forum.choiceofgames.com/u/ballmot)\
**Post date:** [March 13, 2015, 9:22pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/7 "2015-03-13T21:22:09Z")

</div>

Replacing \*selectableif jab with \*selectable\_if (jab = true) might work. I’m not 100% sure tho.

---

<div class="post-metadata">

**Author:** ![SilverRain](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SilverRain](https://forum.choiceofgames.com/u/SilverRain)\
**Post date:** [March 13, 2015, 9:25pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/8 "2015-03-13T21:25:34Z")

</div>

The question displays selectableif even though I typed selectable\_if. Oh well. And if jab or if (jab=true) actually mean the same thing. I still very much appreciate your time. Thanks

---

<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:** [March 13, 2015, 9:29pm UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/9 "2015-03-13T21:29:12Z")

</div>

Looks like CS can’t handle a cascade of selectable\_ifs. Try

\*selectable\_if ((jab) and (dieroll\>10)) #Jab  
\_\_\*set did “jab”

etc.

---

<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:** [March 14, 2015, 1:29am UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/10 "2015-03-14T01:29:20Z")

</div>

As Havenstone says, \*selectable\_if can only be used inline.

Also you can use a backslash (\) before any asterisks \* to stop forum post formatting issues (such as italicizing).

---

<div class="post-metadata">

**Author:** ![Sashira](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/sashira/32/2899_2.png) [@Sashira](https://forum.choiceofgames.com/u/Sashira)\
**Post date:** [March 14, 2015, 9:54am UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/11 "2015-03-14T09:54:12Z")

</div>

@Havenstone got it.

P.S.: the little button that looks like \</\> can be used to make spaces show up in code (highlight the code and click the button.)

---

<div class="post-metadata">

**Author:** ![Silverstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silverstone/32/9901_2.png) [@Silverstone](https://forum.choiceofgames.com/u/Silverstone)\
**Post date:** [March 16, 2015, 12:23am UTC](https://forum.choiceofgames.com/t/couldnt-parse-the-line-after-selectable-if-jab/8069/12 "2015-03-16T00:23:40Z")

</div>

Agree with @Havenstone and @Sashira. Also check indentations before the \*selectable\_if like im talking further up in your story, that also messes up my codes sometimes.
