How to use variables together with functions (2)
I'm just looking for an answer on how to count with a passable variable.
#######
a = 0
def addOne(a):
a +=1
while exists(
addOne(a)
popup(str(a)) ## need this to count up by one each click.
#######
########## This works as a counter but is useless#
a = 0
while exists(
a +=1
popup(str(a)) ## need this to count up by one each click.
#######
#### This works just the same as the first example ##############
def program():
a = 0
def countOne(a):
a +=1
while exists(
countOne(a)
program()
#######
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dude
- Solved:
- Last query:
- Last reply: