Chapter 6. Operators

This chapter covers

  • Logical and comparison operators
  • Bitwise operators
  • Arithmetic operators
  • Type operators
  • Other special operators

In any computer language, operators provide a means of comparing and manipulating pieces of data. PowerShell’s no exception, offering a wide variety of operators for different tasks.

Powershell supplies a number of help files on the various operators. We recommend that you read them in conjunction with this chapter. The help files contain numerous examples that will aid your understanding. The following help files are available:

  • about_Operators
  • about_Arithmetic_Operators
  • about_Assignment_Operators
  • about_Comparison_Operators
  • about_Logical_Operators
  • about_Operator_Precedence

Get PowerShell in Depth, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.