I've a scenario where I've called particular block of code after a set of actions. I used go-to and label in Python. It works as expected.
Is there any other better alternative for this?
This is Python code for automation using Squish-for-QT.
label .mylabel 
while (cond1):
        print("inside cond1")
        Function1(x,y,z)
else:
    if (object.exists("obj1")):
        Screen1 = waitForObject("obj1")
        print ("Inside Screen1")
        while (Screen1.visible):
            Function1(a,b,c)
        else:
            goto .mylabel 
 
     
     
    