Why does "else" not trigger in this event

Edit:nvm im stupid i found out why and it was just a basic math error smh


Hi, first time posting. What I'm trying to do in this parallel event is calculate where the player is, to another event that chases the player, and change the volume of the bgm depending if the player is close to that event or not. For some reason the else trigger which reduces the volume of the music never happens and I have no idea why. Can someone help?

◆Wait:15 frames
◆Control Variables:#0074 PX = Map X of Player
◆Control Variables:#0075 PY = Map Y of Player
◆Control Variables:#0078 CX = Map X of Cass
◆Control Variables:#0079 CY = Map Y of Cass
◆Control Variables:#0075 PY -= CY
◆Control Variables:#0074 PX -= CX
◆If:PX ≥ 0
◆Control Variables:#0074 PX *= -1
◆
:End
◆If:PY ≥ 0
◆Control Variables:#0075 PY *= -1
◆
:End
◆Control Variables:#0074 PX += PY
◆Control Variables:#0074 PX /= 2
◆If:PX ≤ 3
◆Script:var c = AudioManager._currentBgm;
: :c.volume = 100;
: :AudioManager.updateBgmParameters(c);
◆
:Else
◆Script:var c = AudioManager._currentBgm;
: :c.volume = 0;
: :AudioManager.updateBgmParameters(c);
◆
:End
Glad you figured it out.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/why-does-else-not-trigger-in-this-event.165314/