How do you create an IF statement for actions?

I am trying to replace Rectangle's functionality to remove an extra app from my computer for resources purposes. I like BTT since it can do more, while I know Rectangle is free.

I like the functionality that Rectangle gives me in that I can use CMD + Right and click it twice in a row and the window will cycle from 1/2, 1/3 and 2/3 of my screen on the window that is active all with the same keyboard shortcut key. How can I do this?

I figured I would need to use programming logic to check the current size of my window and cycle through this using some sort of IF statements.

maybe you could use the "cycle through multiple actions" meta action, that would be the easiest solution

This is exactly what I was looking for! Thank you!