Using bot status in if statement

Hi how can I use bot status in if else statement ,someone please help

Or

Keychain status in if else statement

Thanks

you can use the data.STATUS variable in keychain blocks, other blocks, lolicode etc. It will return the current status of the bot.

If you want to view the other built in variables OB2 uses, the documentation site contains them.

IF STRINGKEY @data.STATUS Contains "FAIL"




ELSE IF STRINGKEY @data.STATUS Contains "SUCCESS"



END