# Selectable\_if issues

**URL:** <https://forum.choiceofgames.com/t/selectable-if-issues/38579>\
**Category:** ChoiceScript Help\
**Created:** [May 6, 2018, 2:22pm UTC](https://forum.choiceofgames.com/t/selectable-if-issues/38579 "2018-05-06T14:22:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Roy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mohit_roy/32/54714_2.png) [@Mohit\_Roy](https://forum.choiceofgames.com/u/Mohit_Roy)\
**Post date:** [May 6, 2018, 2:22pm UTC](https://forum.choiceofgames.com/t/selectable-if-issues/38579/1 "2018-05-06T14:22:48Z")

</div>

```
*choice
    *selectable_if ((pistol) and (sil))#Use Silenced Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if ((assault_rifle) and (sil)) #Use Silenced Assault Rifle
        *set ammo2 -6
        *goto sh3
    *selectable_if (pistol) #Use Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if (assault_rifle) #Use Rifle
        *set ammo2 -6
        *goto sh3

```

Can anyone help me with this??  
I have tried using (= true) in pistol,sil,assault rifle.But I keep receiving error of couldn’t parse.I need help asap ,thanks

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [May 6, 2018, 2:23pm UTC](https://forum.choiceofgames.com/t/selectable-if-issues/38579/2 "2018-05-06T14:23:15Z")

</div>

What is the error?

---

<div class="post-metadata">

**Author:** ![anon8836198](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon8836198](https://forum.choiceofgames.com/u/anon8836198)\
**Post date:** [May 6, 2018, 2:37pm UTC](https://forum.choiceofgames.com/t/selectable-if-issues/38579/4 "2018-05-06T14:37:14Z")

</div>

There’s no space between the first \*selectable\_if and #Choice text.

```
*choice
    *selectable_if ((pistol) and (sil)) #Use Silenced Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if ((assault_rifle) and (sil)) #Use Silenced Assault Rifle
        *set ammo2 -6
        *goto sh3
    *selectable_if (pistol) #Use Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if (assault_rifle) #Use Rifle
        *set ammo2 -6
        *goto sh3

```

---

<div class="post-metadata">

**Author:** ![Mohit\_Roy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mohit_roy/32/54714_2.png) [@Mohit\_Roy](https://forum.choiceofgames.com/u/Mohit_Roy)\
**Post date:** [May 6, 2018, 4:05pm UTC](https://forum.choiceofgames.com/t/selectable-if-issues/38579/5 "2018-05-06T16:05:16Z")

</div>

Thanks a lot…such a small error,gotta be more careful

---

<div class="post-metadata">

**Author:** ![Mohit\_Roy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mohit_roy/32/54714_2.png) [@Mohit\_Roy](https://forum.choiceofgames.com/u/Mohit_Roy)\
**Post date:** [May 6, 2018, 4:05pm UTC](https://forum.choiceofgames.com/t/selectable-if-issues/38579/6 "2018-05-06T16:05:18Z")

</div>

it was my fault,I didn’t add space after selectable\_if
