digitalRead statement issue

What you apear to have said is that you want pin 2 to read the status of pin 4. Is that correct?

If so, did you connect them together with a piece of wire?