How to end the for loop

Asked by Sikulipro

As we doing in C #
For(i=0;i<n;i++)
{
}

so how to start and end for loop in sikuli , as we doing it in C# with curly brackets {}, how to end for loop in sikuli.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Sikulipro
Solved:
Last query:
Last reply:
Revision history for this message
obiwan-92 (obiwan-92) said :
#1

Hello.

In Sikuli, you are in Python.
To begin a loop, add a tabulation.
To end it, no tab.

for example :

for item in list:
    print item # I am in the loop
    print item # I am still in the loop
print list # I'm not longer in the list

Regards.

Revision history for this message
obiwan-92 (obiwan-92) said :
#2

Sorry.
print list # I'm not longer in the loop

Revision history for this message
Sikulipro (saindane-harshal) said :
#3

Thanks obiwan.