Changes

Jump to: navigation, search
m
Text replacement - "<table border="0" cellspacing="0"> " to "<table border="0" cellspacing="0" width="100%">"
<table border="0" cellspacing="0" width="100%"><tr>
<td width="20%">[[Basic Windows PowerShell 1.0 Operators|Previous]]<td align="center">[[Windows PowerShell 1.0 Essentials|Table of Contents]]<td width="20%" align="right">[[Windows PowerShell 1.0 Pipes and Redirection|Next]]</td>
<tr>
<td width="20%">Basic Windows PowerShell 1.0 Operators<td align="center"><td width="20%" align="right">Windows PowerShell 1.0 Pipes and Redirection</td>
</table>
<hr>
 
 
<htmlet>powershell</htmlet>
 
 
The previous chapter (entitled [[Basic Windows PowerShell 1.0 Operators]]) looked at the basic arithmetic operators provided in Windows PowerShell. In this chapter we will begin to look at some slightly more advanced operators in the form of comparison and containment operators.
== Windows PowerShell Comparison Operators ==
Windows PowerShell provides a range of comparison operators which that can be used to compare one value with another.
These operators work both with string and number based values assuming that you are comparing like with like (it is not meaningful, for example, to compare a string with numerical value). In terms of working with strings and characters, both case-sensitive and insensitive operators are supported.
<google>ADSDAQBOX_FLOW</google><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>
== Windows PowerShell Containment Operators ==
In addition, to the comparison operators, a set of operators referred to as ''containment operators'' are provided for the purpose of identifying whether an array or collection contains a specific value. The containment operators provided by PowerShell are listed in the following table. As with the comparison operators, both case sensitive and insensitive options are provided.
<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>
</pre>
Conversely, the folloing following command performs a case sensitive comparison of the same two stringstrings:
<pre>
True
</pre>
 
<google>BUY_WPS_BOTTOM</google>

Navigation menu