Key Points

  • Operators are symbols that tell Visual Basic .NET to perform some action on one or two operands.

  • Expressions are combinations of variables, properties, literals, constants, and operators that the program will evaluate as it runs.

  • Arithmetic operators perform mathematical operations on one or two numbers.

  • The assignment operator copies the value of an expression into a variable or property.

  • Comparison operators return True or False depending on the relative values of two expressions.

  • Concatenation operators join two expressions as strings. The ampersand (&) operator is preferable to the plus (+) sign as a concatenation operator because the ampersand can’t accidentally perform arithmetic.

  • Logical operators manipulate the results of one or two ...

Get Faster Smarter Beginning Programming 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.