I have been using the following without issue:-
if x= 49 || x=57 then a=26
But if I use the following, I get a Syntax error:-
if x= c-2 || x=c+2 then a=26
I guessing I'm missing something really obvious here, but what have I done wrong. I have checked out http://www.randomter...ds.html#boolean, and from what I can see, what I'm doing is good. For what I'm trying to do, it is important that the x value is compared against the result of the c value.
The weird thing is that the following compiles without issue:-
if x=c+1 then a=14
Is the problem that I'm doing x=c-2 followed by the boolean or?