← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #678932]: Repeat

 

Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932

Rainer proposed the following answer:
The following code:

for i in range(4):
    print(i)
    if i % 2:
        print("is odd")
    else:
        print("is even")

 
should result in the following output:

0
is even
1
is odd
2
is even
3
is odd


Could you please copy & paste this code in the SikuliX IDE and run it? Does it work?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.