As all of the *if clauses are structured the same here, I’m guessing the true error is in some other section of code (maybe where the stat’s added?).
If you’re using CSIDE, there’s a step function that lets you watch your game run the code line by line, as well as an option to track all stat changes…
I note Insanity is capitalized while your other variables aren’t – you might want to double-check that you’re being consistent.
To find bugs like this earlier, you can set randomtest to ‘show line coverage statistics,’ which lists how many times each line was used during testing, and check for anything that was never used.