Quote Originally Posted by Alektric View Post
Yes, I have tried that. PB pro does look much better! In PB, Else is seen to be a label and it gives a ": expected" error on the line with Else on it. The method that works is very similar to what you suggested:

If B0 = 1 Then LIGHTON
Low 7
Goto NEXTPART
LIGHTON:
High 7
NEXTPART:
(code continues)

But unlike this most simple example, things start to get complicated (for me) when there are more If statements referring to that variable which makes what should be a single code block get spread out across many jump labels.

So the Else and EndIf commands are used in PB pro? - I'll have to look into it. Thanks for the help.
I also have run into this.
PB is not what I was expecting, or sold for that matter.
Nothing works like the examples given.
I even get errors compiling the examples as you state.

I cannot define VAR, CON, INCLUDES, etc. whats up with that?
I'm gonna have to go back to MPLab asm at least it WORKS like I expect!

I thought buying PB was going to help but it has made things more difficult.

All I want to do is read pins and set pins with some if---elses but all I can do is peek and poke. I might as well just do asm if I have to write code in broken assembler...

I am not trying to stir the pot but this is not straight forward as it is shown
in software examples.

Back to asm I go, ugh!!!


-M_Z-