Trouble recognizing "and" function

Asked by Daniel Ramirez on 2019-06-24

I am having trouble with having the and function recognized. I can write our the statement and it will show in blue as being recognized and works just fine. However, when I try to adjust the line like backspacing prior to the work and it stops being recognized and the script becomes black.

If X == (" ") and y == (" "):

Also, if I move the line after and to the following line and then backspace so that it moves back up it becomes recognized again.

Any help would be appreciated.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Daniel Ramirez
Last query:
Last reply:
masuo (masuo-ohara) said : #1

there is ')' before 'and'.
If you add '(' after 'and', you will find blue.

masuo (masuo-ohara) said : #3

if there is no space between 'and' and 'y', 'andy' is recognized one of variables.
if there is space between 'and' and 'y', 'and' is recognized one of reserved words.

Daniel Ramirez (ramid083) said : #4

No good, so far. I find it odd that it will work when I initially type it in but then if I modify the line at all I lose the function.

masuo (masuo-ohara) said : #5

What do you want to be?

Daniel Ramirez (ramid083) said : #6

It looks like it is a non-issue. I don't know if I changed something in what I had created but, even though the "and" is no longer in blue it is still functioning properly. Thanks for the help.