sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17394
[Question #226340]: perform actions for only some values of an increasing variables
New question #226340 on Sikuli:
https://answers.launchpad.net/sikuli/+question/226340
Hi,
I am trying to perform an action for some values only of an increasing variable. I want to perform this action for v<7 and 8<v<12 (excluding 7 and 8) and then increase the variable v by 1.
Something along the lines of :
v=0
while v<7 or 8<v<12:
print "example action"
v=v+1
How do i do this without the loop 'breaking' when v=7. I am not sure that a while loop is the right option here.
Thank you very much
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.