Comparison Operators
As in its predecessors, Visual Basic 2010 still defines some comparison operators. Typically comparison operators are of three kinds: numeric operators, string operators, and object operators. Let’s see such operators in details.
Numeric Comparison Operators
You can compare numeric values using the operators listed in Table 4.12.
Such operators return a Boolean value that is True
or False
. The following code snippet shows an example. (Comments within the code contain the Boolean value returned.)
String Comparison Operators
String comparison was discusses in the section “Working with ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.