Expressions and Operator Precedence

The arithmetic, comparison, and Boolean operators, as well as data conversion and other types of functions, can be used to create powerful expressions that can be used in your computations and programs.

An expression is a combination of values and operators. The values can be literals or variables, the operators can be any combination of known operators, and a few more that you will learn later on in the book.

The type of an expression is the data type of the result of the evaluation of an expression. An expression 2 + 3 is a numeric (Integer) expression. i > 5 is (as you have seen) a logical or boolean expression. An expression that evaluates to a String will be a String expression. By evaluating an expression ...

Get Visual Basic® .NET by Example 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.