Chapter 4. Advanced operators and variables

This chapter covers

  • Operators for working with types
  • Unary operators
  • Grouping and subexpressions
  • Array, property, and method operators
  • The format and redirection operators
  • Working with variables

The greatest challenge to any thinker is stating the problem in a way that will allow a solution.

Bertrand Russell

The previous chapter covered the basic operators in PowerShell, and in this chapter, we’ll continue our discussion of operators by looking at the advanced ones, which include things that some people don’t think of as operators at all. We’ll break the operators into related groups, as shown in figure 4.1.

Figure 4.1. The broad groups of operators we cover in this chapter

In this chapter, ...

Get Windows PowerShell in Action, Third 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.