sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10810
Re: [Question #198547]: simple math in sikuli x=x-1 used in while loop
Question #198547 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/198547
RaiMan posted a new comment:
not really:
since the input return is a string, this should be the solution:
x = int( input("How many times to type Hello? (Give me a number)") )
while ( x > 0 ):
type( "Hello" )
x -= 1
This would crash if at input you give something, that cannot be
converted to an integer number.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.