How to detect screen changes in desktop automation

Hi, please see If {picture} then {do this} - #2 by admin

Essentially this is a DO… REPEAT IF loop with a VisualSearch command inside.