Commonly Used Comparison Operators in Windows PowerShell 2

As you use PowerShell 2 to help automate your Windows operating system, you use comparison operators to compare one value with another. Some of PowerShell 2's most common comparison operators are listed in the following table:











































OperatorDescription
-ltless than
-leLess than or equal to
-gtGreater than
-geGreater than or equal to
-eqEqual to
-neNot equal to
-likeLike (uses wildcard for pattern matching)
-matchA match using Regular Expressions
-containsUsed to see if a collection or group of items contains a given
item



dummies

Source:http://www.dummies.com/how-to/content/commonly-used-comparison-operators-in-windows-powe.html

No comments:

Post a Comment