Conditions not working?

Hello. I've had a long period off MV and now that I'm starting again, I'm having an issue with conditional statements.
I have a variable called Spareable. I set three conditions depending on how high it is (1, 2, >=3) but it doesn't work. I can only see the effects up to 2, 3 and higher don't work. I'm wondering what's wrong with my algorithm.
Here is the code:

:When Cheer
◆Control Variables:#0026 Spareable += 1
◆If:Spareable = 1
◆Text:None, Window, Bottom
:Text:* You gave Napstablook a patient smile.
◆Text:None, Window, Bottom
:Text:heh...
◆
:End
◆If:Spareable = 2
◆Text:None, Window, Bottom
:Text:* You told Napstablook a little joke.
◆Text:None, Window, Bottom
:Text:heh heh...
◆
:End
◆If:Spareable ≥ 3
◆Text:None, Window, Bottom
:Text:* Napstablook wants to show you something.
◆Text:None, Window, Bottom
:Text:let me try...
:Text:* Napstablook's tears turn into a hat.
:Text:i call it "dapper blook"
◆Text:None, Window, Bottom
:Text:do you like it...

(It's a fangame. I'm playing around so I can figure out how to use MV before making an original game.)
Thanks for reading.
Is the variable's value definitely higher than 2 when you expect to see the later message?
Is the variable's value definitely higher than 2 when you expect to see the later message?
I think so, I just kept using Cheer but nothing happened.
To test the value, just create a dialogue window right after "When Cheer" that says \V[26]. This way, every time you choose Cheer, you'll have a window that displays the variable's current value. If the window says it's a certain value but the event processing acts like it isn't, tell me and we'll look into it further.
You don't even need to do that. Just get to the point after you use it and expect the variable to be 3, open the console (F8) and type

$gameVariables.value(26)
To test the value, just create a dialogue window right after "When Cheer" that says \V[26]. This way, every time you choose Cheer, you'll have a window that displays the variable's current value. If the window says it's a certain value but the event processing acts like it isn't, tell me and we'll look into it further.
I just did that. It displays the variable just fine, but nothing happened at 3, 4, 5, or 6. I stopped trying after that.
I just did that. It displays the variable just fine, but nothing happened at 3, 4, 5, or 6. I stopped trying after that.
Do you have multiple variables called Spareable that you may have confused with each other? Check if all of them in the conditions are variable number 26.
Do you have multiple variables called Spareable that you may have confused with each other? Check if all of them in the conditions are variable number 26.
I do have another, but I checked and the conditions are all variable 26.
Can you zip up your project and send it to me so I can take a look? I can't see any obvious problems with the event commands. Just the data folder and the map json will be fine.
Can you zip up your project and send it to me so I can take a look? I can't see any obvious problems with the event commands. Just the data folder and the map json will be fine.
Here. Sorry, I zipped it all, I don't really know how to get the right files.
Sorry, I zipped it all, I don't really know how to get the right files.
Right-click on the data folder and Send To -> compressed (zipped) folder.
It's happening because in your conditional branch for >= 3, you've used variable 5 instead of variable 26.

Original thread: https://forums.rpgmakerweb.com/threads/conditions-not-working.134813/