Hey
Thanks for your answer but I don't completly follow.

PortB.0[W0] = Coilstate

What is the .0 for.
I want to do something like this.

PortB.[W0] = Coilstate

But It does not compile.
Where W0 is the pin or bit of port B to change.

Thanks
Nick