digitalRead statement issue

Marcuswdf:
aye sorry mate, im asking why the pins 2 & 4 are not always set on HIGH or LOW when i issue out a digitalWrite ()

furthermore, I'm not sure if it's a problem with my coding and the way I wrote it.

It may be the way you wrote it. But, you’ve not shown how you write it!

The devil is in the details.