
about_Operators - PowerShell | Microsoft Learn
Dec 2, 2019 · Long description An operator is a language element that you can use in a command or expression. PowerShell supports several types of operators to help you manipulate values.
about_Comparison_Operators - PowerShell | Microsoft Learn
Short description The comparison operators in PowerShell can either compare two values or filter elements of a collection against an input value.
about_Logical_Operators - PowerShell | Microsoft Learn
Sep 29, 2025 · The PowerShell logical operators connect expressions and statements, allowing you to use a single expression to test for multiple conditions. For example, the following …
about_Type_Operators - PowerShell | Microsoft Learn
The Boolean type operators (-is and -isnot) tell whether an object is an instance of a specified .NET type. The -is operator returns a value of TRUE if the type matches and a value of FALSE …
about_Assignment_Operators - PowerShell | Microsoft Learn
PowerShell also has the following compound assignment operators: +=, -=, *=, %=, ++, --, ??=. Compound assignment operators perform operations on the values before the assignment.
about_Operator_Precedence - PowerShell | Microsoft Learn
Mar 24, 2025 · This topic lists the operators in precedence order. Precedence order is the order in which PowerShell evaluates the operators when multiple operators appear in the same …
Everything you wanted to know about the if statement - PowerShell
Dec 18, 2023 · PowerShell has special operators for different comparison scenarios. When you use a comparison operator, the value on the left-hand side is compared to the value on the …
about_Redirection - PowerShell | Microsoft Learn
Use the PowerShell redirection operators. Redirecting the output of a PowerShell command (cmdlet, function, script) using the redirection operator (>) is functionally equivalent to piping to …
Where-Object (Microsoft.PowerShell.Core) - PowerShell
To enable the simiplified syntax, Where-Object includes 31 switch parameters that represent the comparison operators. The simplified syntax is easier to read and write than the script block …
about_Pipeline_Chain_Operators - PowerShell | Microsoft Learn
Jan 19, 2024 · These operators are known in PowerShell as pipeline chain operators, and are similar to AND-OR lists in POSIX shells like bash, zsh and sh, as well as conditional …