The new value of the dropdown only registers after the change event. This means this.rawValue
points to the old value of the dropdown in a change event.
Either move your script dropdown exit event or make use of the event.newText
in the if conditional in the change event.