I got this from someone else, but this is how you would use the IR board to tell the robot to do something.
Code:
if (GetDigitalInput(1)){
doWhatever();
}
else if (GetDigitalInput(2)){
doSomethingElse();
}
change the number in GetDigitalInput to whatever to fit your needs. Good Luck!