Scripting in BTT

I'm doing some GUI scripting for work, does anyone have ideas on how to do a GUI if/then? there are some nodes in my workflow where I might get two different windows popping up, at which time I would like for my "wait for image" to detect which window popped up, then continue down one script or the other, depending on that window. The two different windows will have different-looking buttons that can be clicked.

In general using Apple Script is probably a better idea for complex UI scripting.

Unfortunately the „wait for image to appear on screen“ action currently only supports searching for one image.
However you can use multiple „if image visible on screen“ conditions, maybe you can use them to set variables and then have if conditions based on these variables.

ah yes, that's a great idea. Thank you!