if I write
10 IF VAR1 THEN VAR3 = 0 ELSE IF VAR2 THEN VAR3 = 1 ELSE VAR3 = 2
the hit F2 to validate/send the program, it will work.
If I try to reopen the program afterward, I will get an empty program and a DECODE ERROR in the log.
So either Multiple IF should be supported, or it should be declare as an error when compiling
Please use “if else” to execute your program. We will address the issues caused by “else if” in subsequent fixed versions. Thank you for your feedback.
Another tip:
-Break the programs into one operation per line.
Lines further down will override the earlier lines.
-Give the vars names to make it easier to understand what is going on.
10 FANMODE = 2
20 IF FLAG1 THEN FANMODE = 0
30 IF FLAG2 THEN FANMODE = 1