Operators

Like any other programming language, Windows PowerShell also supports rich set of operators to do specific type of operations. Operator is nothing but a character or a set of characters which gives instructions to compiler or interpreter to perform related operation.

Windows PowerShell supports several types of operators which are divided into categories depend on their ability to perform operation as below.

      Airthmetic Operators (+, -, *, /, %)
      Assignment Operators (=, +=, -=, *=, /=, %=)
      Comparison Operators (-eq, -ne, -gt, -lt, -le, -ge)
      Logical Operators (-and, -or, -xor, -not, !)
      Redirection Operators (>, >>, 2>, 2>>, and 2>&1)
      Split & Join Operators (-split and -join)
      Type Operators (-is, -isnot, -as)
      Unary Operators (++, --)
      Special Operators (...)

 

← Previous

Next →