4
Operators
In programming, an operator is an object that is used to manipulate an item of data. Operations include comparing values, performing replacement and split operations, mathematical operations, bitwise operations, and so on. An operator is a fundamental part of any programming language and PowerShell is no exception.
PowerShell has a wide variety of operators; each one is explored within this chapter.
This chapter covers the following topics:
- Arithmetic operators
- Assignment operators
- Comparison operators
- Regular expression-based operators
- Logical operators
- Binary operators
- Type operators
- Redirection operators
- Other operators
Arithmetic operators
Arithmetic operators are used to perform numeric calculations. The arithmetic operators ...
Get Mastering PowerShell Scripting - Fourth Edition 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.