# Stat reaction coding

**URL:** <https://forum.choiceofgames.com/t/stat-reaction-coding/67840>\
**Category:** ChoiceScript Help\
**Created:** [October 26, 2019, 3:04pm UTC](https://forum.choiceofgames.com/t/stat-reaction-coding/67840 "2019-10-26T15:04:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoldenSilver](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/goldensilver/32/110153_2.png) [@GoldenSilver](https://forum.choiceofgames.com/u/GoldenSilver)\
**Post date:** [October 26, 2019, 3:12pm UTC](https://forum.choiceofgames.com/t/stat-reaction-coding/67840/3 "2019-10-26T15:12:11Z")

</div>

Both your conditions only check if Emotional or Stoic are less than 50. If they are higher than that, the \*if and \*elseif will be skipped.

You need to add conditions to check if those stats are equal or higher than 50. Use an \*else to always catch the situation where none of the conditions are met.

> **[If](https://choicescriptdev.fandom.com/wiki/If)**
>
>    The \*if conditional command serves three main purposes: comparing variables (including textual string variables), checking if a variable is true or not, checking if the value of a numeric variable is equal to, not equal to, greater than,...

> **[Else](https://choicescriptdev.fandom.com/wiki/Else)**
>
>    The \*else command is only ever used in combination with the \*if command, and sometimes also including the \*elseif (or \*elsif ) command. This command is used as follows: \*if (exam\_passed) You passed the exam! \*finish \*else You failed the...

* * *

Other tips: You don’t have to use \*line\_breaks to break lines, simply leave a blank line and it will have an automatic line break when the game is run.

Use syntax highlighter for notepad++ for better visuals while coding:

> **[Notepad++ Syntax Highlighter](https://choicescriptdev.fandom.com/wiki/Notepad%2B%2B_Syntax_Highlighter)**
>
> Like other text editors, Notepad++ (which is recommended by the basic tutorial) uses a system called Syntax Highlighting which helps in coding by visually identifying different parts of code with color. This allows you to more easily read the code,...

Or use CSIDE:

> [@\[CSIDE\] The ChoiceScript IDE (v1.3.3 Now Available — 05/09/2022)](https://forum.choiceofgames.com/t/cside-the-choicescript-ide-v1-3-0-now-available-18-06-2019/27622):
>
> The new version of CSIDE (The ChoiceScript IDE) is now available! CSIDE (seaside) is an unofficial application designed to help writers of interactive novels who use ChoiceScript, from Choice of Games. Desktop Downloads: [Release ChoiceScript IDE - Public Release · ChoicescriptIDE/main · GitHub](https://github.com/ChoicescriptIDE/main/releases/tag/v1.0.1) Web Version (Requires a Dropbox Account) [ChoiceScript IDE](https://choicescriptide.github.io/web/) More information available at: [https://choicescriptide.github.io/](https://choicescriptide.github.io/)[https://twitter.com/ChoiceScriptIDE](https://twitter.com/ChoiceScriptIDE) And Discord for real-time discussio…

---

_[View the full topic](https://forum.choiceofgames.com/t/stat-reaction-coding/67840)._
