exists doesen't seem to work inside def!!
Asked by
GZ
When I am trying to do this, I get an error message for some reason and I can't seem to figure it out why:
def foo():
if exists(
stuff='Hello'
elif exists(
stuff='World'
foo()
print stuff
[error] NameError ( name 'stuff' is not defined )
BUT it works like this:
if exists(
stuff='Hello'
elif exists(
stuff='World'
print stuff
I have also tried this, but no luck, still not working:
def foo()
img1 = exists(
img2 = exists(
if img1 != None:
stuff='Hello'
elig img2 != None:
stuff='World'
foo()
print stuff
I really don't know whats wrong..
Any help or advice is much appreciated!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- GZ
- Solved:
- Last query:
- Last reply:
This question was reopened
- by GZ
To post a message you must log in.