CXone Studio ASSIGN action not updating variable for subsequent IF check

Trying to implement dynamic routing logic in Studio. I use an ASSIGN action to set var_priority to ‘High’ based on IVR input. Immediately after, I have an IF action checking var_priority == 'High'. It always fails the check, even though the debug log shows the assignment happened.

Is there a scoping issue with variables set in ASSIGN blocks? Or do I need to wait for a specific event before the variable is available? The script just drops to the default branch every time.