"IF" statement not evaluating correctly

If have an IF condition that checks that a variable is equal to 1. However, it the condition always evaluates to FALSE even when the variable is equal to 1.

I added different sounds to both the IF and ELSE conditions, and it always plays the sound in the ELSE condition. I double checked the value in the debugger and no matter what the value is (1 or otherwise), it always goes to the ELSE code.

Thank you in advance for your assistance.