Chapter 3. Operators and expressions
This chapter covers
- Arithmetic operators
- Assignment operators
- Comparison operators
- Pattern matching and text manipulation
- Logical and bitwise operators
Operators, Mr. Rico! Millions of them!
Robert A. Heinlein, Starship Troopers (paraphrased)
The goal of PowerShell is to enable you to get real work done. As in any language, expressions consist of operators and objects. The operators perform their operations on objects, giving you (hopefully) useful results. This chapter covers the set of basic operators in PowerShell and how they’re used in expressions. Without operators PowerShell can’t perform comparisons, arithmetic, logical operations, or a host of other activities. The operators we’re going ...