Quote Originally Posted by scaenix View Post
...

"if s1 > 225 then s1 = 225"...
There must be some other IF statements with missing THEN or ENDIF in the code.
One of those may be the cause of the error you get.

------------------