34,333
edits
Changes
→Comparison Operators
Clearly 10 is less than 20, resulting in a ''true'' evaluation of the ''x < y'' expression. The following table lists the full set of C# comparison operators:
<table border="1" cellspacing="0">
<tr style="background:#efefef;">
<th>Operator</th><th>Description</th>
<tr>
<td>x == y<td>Returns true if x is equal to y</td>
<tr>
<td>x > y<td>Returns true if x is greater than y</td>
<tr>
<td>x >= y<td>Returns true if x is greater than or equal to y</td>
<tr>
<td>x < y<td>Returns true if x is less than y</td>
<tr>
<td>x <= y<td>Returns true if x is less than or equal to y</td>
<tr>
<td>x != y<td>Returns true is x is not equal to y</td>
</table>