How to use If else and close the browser in selenium ? [Help]

This is my code , and it doesn’t close the browser because if it fail condition get stoped here , i dont know how to make to move to close broswer block , only work with success.

BLOCK:SeleniumGetDOM
=> VAR @seleniumGetDOMOutput
ENDBLOCK

BLOCK:Keycheck
KEYCHAIN FAIL OR
STRINGKEY @seleniumGetDOMOutput Contains “We can’t find an account with this email address”
KEYCHAIN SUCCESS OR
STRINGKEY @seleniumGetDOMOutput Contains “A one-time code has been sent to”
ENDBLOCK

I’m on vacation without my PC but probably you can do the key check that fails as CUSTOM and do something like this nasty shit hehe

if (data.STATUS == “CUSTOM”) {

// Here the block to close browser
data.STATUS = “FAIL”;
return;
}
else
//Rest of the config that will run if status is none/success

Probably have to add Custom on that part of config settings that let you choose which states will keep running the config