Break the execution

Asked by sanjana

Hi, What is the command to break the execution in sikuli
Situationl: When a particular tab is not found , in the else part : command to stop the execution ie the statement next to else part should not be executed and a message saying "tab not found" should be displayed to the user and then sikuli should open up...

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

else:
    popup("something went wrong");
    exit()

Revision history for this message
sanjana (savi-jc) said :
#2

Tried the exit() command. It dint work, so wanted to know if ther is an alternative command for exit()
and can you tel me why the exit command dint work?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

what was the problem?

post some part of your script.

Revision history for this message
sanjana (savi-jc) said :
#5

Thanks RaiMan, that solved my question.