sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00940
Re: [Question #143114]: goto or continue execution from other line
Question #143114 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/143114
Status: Open => Answered
RaiMan proposed the following answer:
not really clear what you are looking for.
You say "skip some lines": what I understand in the sense of
programming: some lines should not be executed if a condition is met.
this is done in Python/Sikuli by saying:
if not exists(something,3):
# statement block 1
elsif not exists(something-else,3):
# statement block 2
else:
# statement block 3
- block 1 will be skipped, if something exists
- block 2 will be skipped, if something-else exists
- block 3 will be skipped, if either something or something-else does not exist
Thinking in skipping something (do not execute) is rather challenging. I
think it is easier and more straightforward, to design a workflow having
in mind, what should be executed if a condition is met (which could mean
that something is NOT happening)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.