Output control via serial

Hi all i need a little help.

Is there any way i could control the turning on and off of an led by using the serial monitor?

Ie by typing in digital pin = HIGH then the led turns on

digital pin = LOW then the led turns off???

Im trying to be able to do this so i can try and build a GUI further down the line, but i want to encorporate all the hardwiring and code now.

Any help would be greatly appreciated.

VR

Dont worry guys,

I found what i needed here:

VR