New to BTT and working through conditionals

Hi

I am trying to get a simple operation going, but I may be missing something. I would like to have a open application minimize if I click on it with a simple left click. It is a Windows "thing" and it is intuitive to me even though I have not used a Windows OS in ten years. It seemed to me that a simple conditional would work. IF app not open THEN Open it ELSE minimize (not hide) it.

Am I overthinking this?

Something like this - Windows-like Minimize toggle on Dock icons ?

Yep just like that. Wonder why my search didn’t find it. Thank you so much!