Need help with my Deluge Script (it partially works)

Need help with my Deluge Script (it partially works)

Hello,

I am having trouble with this deluge script working fully. When a form is updated or edited the deluge script needs to auto populate a dropdown field with either (Region 1, Region 2, Region 3, Region 4, Region 5). This is based off of what was inputted into the "State" field.

My deluge script I wrote looks like this: 



However, when I run this code it will read through until line 21  and put "Region 4". 

Any thoughts?