IF [My database is in RECOVERY mode] [DO SOME STUFF] ELSE [DO SOME OTHER STUFF]
IF DATABASEPROPERTYEX(\'DBName\',\'Status\')=\'RECOVERING\'