Ok...... two things here. The first thing is .... you mentioned, you couldn't get the code to compile. That's one thing. What kind of error messages etc did you see when you tried to compile?
Then, the other thing is..... the 'if' statement. What you want to do is to have three values ready for you to compare. Eg, A, B and C. So if any of these values equals what you said (ie. 255), then light something up...
eg. if ( (A == 255) || (B == 255) || (C == 255) ) {
digitalWrite(some_pin_number_or_label, HIGH);
}
eg. if ( (A == 255) || (B == 255) || (C == 255) ) {
digitalWrite(ledPin, HIGH);
}
Also, for that pin number that is meant to light up and LED.... define that pin somewhere BEFORE void setup()........such as:
int ledPin = 13;