question mark inside C# syntax
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3312786/benefits-of-using-the-conditional-ternary-operator">Benefits of using the conditional ?: (ternary) operator</a>  </p>
</blockquote>



<p>hi, I'm viewing this freesource library and I saw this weird - at least for me -  syntax</p>

<pre><code>*currFrame = ( ( diff &gt;= differenceThreshold ) || ( diff &lt;= differenceThresholdNeg ) ) ? (byte) 255 : (byte) 0;
</code></pre>

<p><em>currFrame is of type byte</em> </p>

<p>diff, differenceThreshold and differenceThresholdNeg are of type Int.</p>

<p>What does the question mark do ? , what is this weird assign sentence suppose to mean ?</p>

<p>Thanks in advance</p>
