sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31701
Re: [Question #265063]: Manipulate the counter in for loop
Question #265063 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265063
RaiMan proposed the following answer:
--- Just wondering : Why someone can't change the counter?
this is simply by design of Python.
If you want to change the "counter" you have to use other constructs:
max = 5
run = 0
while true:
# do something
if run == max: break
if something: max += 2
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.