IR Programming Problems

We have it hooked up correctly and our easyc program reads it correctly but we can not figure out how to use the boards pulse signal to make our robot do functions.

if(DIGITAL_PIN){
do_what_you_want_the_robot_to_do();
}