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

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Ramirez
Solved:
2019-06-25
Last query:
2019-06-25
Last reply:
2019-06-25
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.