# Does "\*if" work after minor update?

**URL:** <https://forum.choiceofgames.com/t/does-if-work-after-minor-update/1301>\
**Category:** ChoiceScript Help\
**Created:** [April 29, 2013, 2:20am UTC](https://forum.choiceofgames.com/t/does-if-work-after-minor-update/1301 "2013-04-29T02:20:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheVideoNub](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/thevideonub/32/975_2.png) [@TheVideoNub](https://forum.choiceofgames.com/u/TheVideoNub)\
**Post date:** [April 29, 2013, 2:20am UTC](https://forum.choiceofgames.com/t/does-if-work-after-minor-update/1301/1 "2013-04-29T02:20:07Z")

</div>

Alright, let me explain. Before this minor update on ChoiceScript less than a week ago, I was able to do the following:

* * *

## \*if maletech \> 2 \_\_You open your eyes barely, a computer monitor in front of you. Seems like you slept in the computer again! etc. \*if malechef \> 2 \_\_A porkchop sizzles in the frying pan. Many smells surround you. Your restaurant is really busy, better get working! etc.

I could approach a scene at the beginning depending on stats from the previous scene before the minor update (well, I consider it a minor update). But after I re-downloaded ChoiceScript according to the new minor update, I can’t do anything with the \*if, even at choices. Meaning, the \*if won’t work at all.

* * *

## You sit at a bonfire. Time to cook something! \*choice \_\_#Cook empanadillas \_\_\_\_\*if femalechef \> 2 \_\_\_\_\_\_Well, where’s the pan? And pass me the knife! \_\_\_\_\*if malechef \> 2 \_\_\_\_\_\_I forgot the empanadillas! Oh no! \_\_\_\_I’m not a chef! Let Jack cook! \_\_#Cook porkchops \_\_\_\_\*if femalechef \> 2 \_\_\_\_\_\_I forgot the porkchops! Oh no! \_\_\_\_\*if malechef \> 2 \_\_\_\_\_\_Well, where’s the pan? And pass me the knife! \_\_\_\_I’m not a chef! Let Jack cook!

Even if I have the required stats, it still jumps the \*if and goes to “I’m not a chef! Let Jack cook!”. The thing is, in the previous scene, there’s no way to result a different number in the stats. What I’m saying is that you can choose either “malechef” or “maletech”. If you choose one, you’ll end up being the one you choose.

* * *

## What am I? \*choice \_\_#Male Chef \_\_\_\_Time to cook! \_\_\_\_\*set malechef \> +1 \_\_#Male Technician \_\_\_\_Time to fix computers! \_\_\_\_\*set maletech \> +1

The default stats (without making choices) are: “malechef: 1, maletech: 1”. After choosing #Male Chef, you’ll end up with “malechef: 2, maletech1”. With malechef: 2, it’ll mean you’ll be a chef; if the rest of the stats are 1, they’ll be irrelevant to you being a chef. There can’t be no \*elseif maletech \> 2 if you have \*if malechef \> 2, because they’re completely different stats! Or am I wrong? Either way, that worked for me before the minor update. I hope there’s a different format to that, and that it hasn’t been disabled.  
Can somebody help me with this? Unless it’s a real obvious new format that I’m not noticing.

---

<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:** [April 29, 2013, 3:43am UTC](https://forum.choiceofgames.com/t/does-if-work-after-minor-update/1301/2 "2013-04-29T03:43:41Z")

</div>

“I’m not a chef let Jack cook” isn’t indented far enough to be under an if so that WILL always print when you select “Cook Porkchops” - what you need to do avoid that is put a \*goto some\_label under every single if, so it jumps it.

Also not sure why you’re making it so hard on yourself with the ifs, why not just do:

\*if (profession = “tech”)  
\*if (profession = “chef”)

What’s with all the greater thans?
