CHAPTER 6Operators
Windows PowerShell supports several types of operators, including some interesting and powerful ones that are not typically found in scripting or programming languages. This chapter covers the operators that you will most commonly use when working with Windows PowerShell and SharePoint 2010.
Arithmetic Operators
The basic arithmetic operators include those to add, multiply, subtract, divide, and calculate the remainder of a division. Table 6-1 lists these operators.
Let’s take a closer look at the + operator. To add the values 1 and 5 together, you could type this:
PS > 1 + 56
To add a string with a numeric value, use this form:
PS > "String" + 5String5
It is also possible to add multiple string values to build up a single ...
Get PowerShell for Microsoft SharePoint 2010 Administrators 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.