Robert,
Looks like this may be an exception.
I would suspect this has to do with the possible variants of the IF/THEN statement.
1. Single line IF/THEN
2. Multi-line IF/THEN
3. Multi-line IF/THEN/ELSE
4. Multi-line IF/THEN/ELSEIF/ELSE
The parser may not be able to handle the decisions with these possible permutations AND the Line-Concatenation ( : ) to boot.
I run PBP 3.0.7.4 and this compiles and runs fine.
Notice the placement of the ":" character is after the full "then" portion.
B0 var byte
B1 var byte
B0 = 0
B1 = 0
for B0 = 1 to 10
if B0 // 2 = 0 then B1 = B1 + 2 : LCDOUT $FE,$C0,"B0=",dec B0," B1=",dec B1 : pause 1000
next B0
This outputs:
B0=2 B1=2
B0=4 B1=4
B0=6 B1=6
B0=8 B1=8
B0=10 B1=10
Bookmarks