# Help with ifs and selectable\_ifs

**URL:** <https://forum.choiceofgames.com/t/help-with-ifs-and-selectable-ifs/2178>\
**Category:** ChoiceScript Help\
**Created:** [March 1, 2014, 12:55pm UTC](https://forum.choiceofgames.com/t/help-with-ifs-and-selectable-ifs/2178 "2014-03-01T12:55:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Moser](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eric_moser/32/259257_2.png) [@Eric\_Moser](https://forum.choiceofgames.com/u/Eric_Moser)\
**Post date:** [March 1, 2014, 12:55pm UTC](https://forum.choiceofgames.com/t/help-with-ifs-and-selectable-ifs/2178/1 "2014-03-01T12:55:25Z")

</div>

I’ve read posts and the Wiki and the COG hints and I still struggle with ifs and selectable\_ifs. I’m really trying to get Chapter 3 drafted this weekend and I’m getting to the point in my story where I have to account for past actions when considering future actions.

At the moment I’m struggling with inserting a selectable\_if. Here is my code and the error message I get

```

What sort of uniform did you pick?
*choice
	#a sleek and traditional spandex bodysuit 
		*set uniform "spandex uniform"
		*goto mask
	#head to toe leather to intimidate villains
		*set uniform "leather uniform"
		*goto mask
	#a machine washable sweatsuit with $!{hname} on the chest
		*set uniform "sweatsuit"
		*goto mask
	*selectable_if (defense !="Kevlar Jacket")#a revealing outfit covering just enough to avoid arrest. 
		*set uniform "revealing outfit"
		*goto mask
	#a martial arts robe
		*set uniform "robe"
		*goto mask
	#a hoodie and jeans, since a traditional uniform seems unnecessary. 
		*set uniform "street clothes"
		*goto mask

```

line 642: Couldn’t parse the line after \*selectable\_if: (defense !=“Kevlar Jacket”)#a revealing outfit covering just enough to avoid arrest.

Can anyone please help explain this?

---

<div class="post-metadata">

**Author:** ![DSeg](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dseg/32/19033_2.png) [@DSeg](https://forum.choiceofgames.com/u/DSeg)\
**Post date:** [March 1, 2014, 1:03pm UTC](https://forum.choiceofgames.com/t/help-with-ifs-and-selectable-ifs/2178/2 "2014-03-01T13:03:43Z")

</div>

There needs to be a space between “)” and “#”. That’s it.

---

<div class="post-metadata">

**Author:** ![Eric\_Moser](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eric_moser/32/259257_2.png) [@Eric\_Moser](https://forum.choiceofgames.com/u/Eric_Moser)\
**Post date:** [March 1, 2014, 1:08pm UTC](https://forum.choiceofgames.com/t/help-with-ifs-and-selectable-ifs/2178/3 "2014-03-01T13:08:55Z")

</div>

Thank you very much, DSeg.
