In programming, an operator is an object that is used to manipulate an item of data. Operators have a wide variety of uses, from comparing two values and replacing values, to allowing command names to be expressed as string. An operator is truly a fundamental part of any programming language and PowerShell is not exception.
PowerShell has a wide variety of operators; most of these will be briefly explored within this chapter.
In this chapter, we are going to cover the following topics:
- Arithmetic operators
- Assignment operators
- Comparison operators
- Regular expression-based operators
- Binary operators
- Logical operators
- Type operators
- Redirection operators
- Other operators