End after success explicitly

I want to explicitly end the bot using script, i know i can do it using settings but that isnt sufficient in my case.
its something like

keycheck - success
Do this
Do that
stop the bot with status success

IF STRINGKEY @data.STATUS EqualTo "SUCCESS"
do this
do that
return;
END
1 Like