CXone Studio IF action failing on string comparison

Hey everyone,

I’m trying to build a simple routing flow in CXone Studio. I want to route calls based on a custom attribute ‘region’.

Here is my snippet:

ASSIGN region = GETRESTPROXY('attributes.region')
IF region == 'east' THEN goto 'east_queue'
ELSE goto 'west_queue'

The flow always hits the ELSE branch, even when I know the value is ‘east’. I logged the variable and it looks correct. Is the IF statement case-sensitive or am I missing a type cast?