Possible Duplicate:
Benefits of using the conditional ?: (ternary) operator
hi, I'm viewing this freesource library and I saw this weird - at least for me - syntax
*currFrame = ( ( diff >= differenceThreshold ) || ( diff <= differenceThresholdNeg ) ) ? (byte) 255 : (byte) 0;
currFrame is of type byte
diff, differenceThreshold and differenceThresholdNeg are of type Int.
What does the question mark do ? , what is this weird assign sentence suppose to mean ?
Thanks in advance