Changes

Jump to: navigation, search

Visual Basic Comparison and Logic

No change in size, 17:03, 7 August 2007
Visual Comparison Operators
<td>=<td>Equal to<td>Returns ''True'' if first operand equals second<td>Dim intValue = 10<br>If intValue = 10 Then Exit Sub</td>
<tr>
<td><<td>Less than<td>Returns ''trueTrue'' if the value of the first operand is less than the second<td>If intValue < 10 Then Exit Sub</td>
<tr>
<td>><td>Greater than<td>Returns ''trueTrue'' if the value of the first operand is greater than the second<td>If intValue > 10 Then Exit Sub</td>
<tr>
<td><=<td>Less than or equal to<td>Returns ''trueTrue'' if the value of the first operand is less than, or equal to, the second<td>If intValue <= 10 Then Exit Sub</td>
<tr>
<td>>=<td>Greater than or equal to<td>Returns ''trueTrue'' if the value of the first operand is greater than, or equal to, the second<td>If intValue >= 10 Then Exit Sub</td>
</table>

Navigation menu