d-r-- 11/7/2008 4:26 PM Downloads
</pre>
== Windows PowerShell Bitwise and Logical Operators ==
As with most other programming and scripting languages, Windows PowerShell supports the usual range of logical operators for performing operations such as AND, OR, XOR and NOT. The full range of logical operators is outlined in the following table:
<table border="1" cellpadding="5" cellspacing="0" id="E3B" style="border-collapse: collapse; border-color:#cccccc; border-style: solid; border-width: 1px; margin-bottom:20px">
<tr bgcolor="#cccccc" style="color:black" valign="top">
<th>
Operator
</th>
<th>
Description
</th>
</tr>
<tr>
<td>
-and
</td>
<td>
Perform a logical AND of the left and right operands
</td>
</tr>
<tr bgcolor="#e9e9e6">
<td>
-or
</td>
<td>
Perform a logical OR of the left and right operands
</td>
</tr>
<tr>
<td>
-xor
</td>
<td>
Perform a logical XOR of the left and right operands
</td>
</tr>
<tr bgcolor="#e9e9e6">
<td>
-not
</td>
<td>
Perform a logical NOT of the left and right operands
</td>
</tr>
<tr>
<td>
-band
</td>
<td>
Perform a logical binary AND of the left and right operands
</td>
</tr>
<tr bgcolor="#e9e9e6">
<td>
-bor
</td>
<td>
Perform a logical binary OR of the left and right operands
</td>
</tr>
<tr>
<td>
-bxor
</td>
<td>
Perform a logical binary XOR of the left and right operands
</td>
</tr>
<tr>
<td>
-bnot
</td>
<td>
Perform a logical binary NOT of the left and right operands
</td>
</tr>
</table>
== Windows PowerShell Bitwise and Logical Operators ==