
Originally Posted by
tazntex
The manual says:
W2 = W0
W0 = W1
W1 = W2
is the same as:
W2 = W0 : W0 = W1 : W1 = W2
Yes, that is completely valid..
So why wont this compile:
IF mydata=%01010110 THEN: HIGH 7:else: low 7: ENDIF:PAUSE 50:GOTO loop
ERROR Line 48: Bad expression. (Test(test mod2).pbp)
I've even tried it as this :
IF mydata=%01010110 THEN HIGH 7:else: low 7: ENDIF:PAUSE 50:GOTO loop
Just like I said in my last post, I'm not 100% sure that an else in the IF/THEN is valid, and apparently it's not. So you still have to split up the If/Then/Else/Endif statements.
This is valid:
Code:
If mydata = x then
high 7
else
low 7
endif
pause 50:goto loop
You're examples above are not valid.
These don't work either:
Code:
IF mydata = x then pause 50 : GOSUB something
If mydata = x then for x = 1 to 10 : pause 1 : next x
These work:
Code:
if mydata = x then
pause 50 : gosub something
endif
if mydata = x then
for x = 1 to 10 : pause 1 : next x
endif
Just a few examples of what works and what doesn't when using colons...and I know colons!
Bookmarks