if statement inside while loop

Southpark:
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;

When i tried my idea's it couldnt compile this is how i could get with the code, and the error messages looked like:''exit status 1 expected primary-expression before '}' token''

And thanks for the reaction going to try this never knew you could write it down like this ''if ( (A == 255) || (B == 255) || (C == 255) ) '' im new to coding. it's for my internship im doing now.