If I understand what you’re asking for, you want to get a notification if the garage door is closed while a different door is still open?
If so, the smartthings official features don’t have a “while” clause, but Core (community’s own rules engine) does. It’s a very sophisticated rules engine smart app that allows for multiple stacked conditionals.