# \*if command help

**URL:** <https://forum.choiceofgames.com/t/if-command-help/7871>\
**Category:** ChoiceScript Help\
**Created:** [March 3, 2015, 12:49am UTC](https://forum.choiceofgames.com/t/if-command-help/7871 "2015-03-03T00:49:56Z")\
**Posts on this page:** 1\
**Showing post:** 16

<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:** [April 5, 2015, 3:36am UTC](https://forum.choiceofgames.com/t/if-command-help/7871/16 "2015-04-05T03:36:01Z")

</div>

What I generally do, if some of my code isn’t working, is I take snippets of code and plug it into the online tester.

Link: [https://dl.dropboxusercontent.com/u/7840892/CJW/choicescript/tools/IDE/main.html](https://dl.dropboxusercontent.com/u/7840892/CJW/choicescript/tools/IDE/main.html)  
Forum Thread [[Tool] ChoiceScript Development Environment](https://forum.choiceofgames.com/t/tool-choicescript-development-environment/1875)

Then I plug in values at the top to check and see if it’s working. So in your case I’d copy and paste in that section of code, then stick a

\*create guards\_unconscious false  
\*create guards\_dead 0  
\*set guards\_dead +3

at the top.

Then I’ll fiddle around until it works. If it does already work then I’ll assume the error’s in another bit of code and go hunting.

Is there a possibility your dead guard variable is being missed? Or that you’re ending up with 1 dead guard, or 4+ dead guards, since either way it’ll cause you to skip that section. Also, if your agility is above or below 1 then you’re not hitting that dead\_guards increase either.

---

_[View the full topic](https://forum.choiceofgames.com/t/if-command-help/7871)._
