i need help with the if function

hi all i want my arduino to do some thing if digitalRead(3) detects a signal how wold i do it

thanks,

Lukas

Edit: got it to work

Look up the if statement.

i cant seem to find what im looking for on there

Google is your friend, learn how to use it.
http://www.arduino.cc/en/Tutorial/Pushbutton