I’m trying to set a simple flag in a Studio snippet to drive routing logic later. I have a variable called is_priority and I want to set it to true if the queue handle time is over 60 seconds. The ASSIGN action keeps failing with a type mismatch error, even though I’m explicitly casting to boolean. Here’s the snippet:
ASSIGN is_priority = (queue_handle_time > 60) ? true : false
IF is_priority == true THEN
GOTO priority_queue
ELSE
GOTO general_queue
END IF
The error log just says Invalid value for variable assignment. I’ve tried using 1 and 0 instead of true and false but the IF block still evaluates incorrectly. Is there a specific syntax for boolean assignments in Studio that I’m missing? This seems like a basic check but it’s blocking the whole flow.