-and Returns true when both left value and right value of operand are true The –and operator is similar to && operator in c#.
-or Returns true when either of the left value or right value of operand is true The –or operator is similar to || operator in c#.
-xor Returns true when only one is true in either of the right and left values of operand The –xor operator is similar to ^ operator in c#.
! or -not This negates the resultant boolean value, true to false or false to true The ! operator is similar to ! operator in c#.
2>> Appends errors to file The following example will create new commandlog.txt file with the errors that occured by the cmdlet but only appends to the existing file.
Hope you got some good understanding on the various operators in powershell and how they are used.
We will further see how we can use flow controls (arrays, for loop, foreach…) and how to create functions.