Python: NameError
So I have the following script section:
def TryCreation():
try:
except Exception:
return false;
popup("True: " + acc);
return true;
def MainLoop():
while True:
if TryCreation():
acc+=1;
if !TryCreation():
acc-=2;
popup("
MainLoop()
-------
And upon executing, I receive the following error:
[error] script [ RSAccMake ] stopped with error in line 61
[error] NameError ( global name 'false' is not defined )
[error] --- Traceback --- error source first line: module ( function ) statement 48: main ( TryCreation ) return false;
54: main ( MainLoop ) if TryCreation():
[error] --- Traceback --- end --------------
Not sure how to fix it (excuse my ignorance to the topic). Thank you!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Rocco for more information if necessary.