I am creating a custom button that will update the Status field on the Case object to "Resolved". Before the field is updated, I would like to first check if the field already is set to "Resolved". If so, then I would alert the user. If not, the field update would carry on. I have the below code in place but I am receiving the error "ReferenceError: Case is not defined" when the button is selected. I believe I'm just missing a minor snippet of syntax - any help resolving this would be appreciated!