Sponsors

Tuesday, 22 March 2016

Powershell Comparison Operators

Comparison operators are commonly used with numerical values, although can be used when working with dates or version numbers and other variable types. The following table contains the comparison operators.



The -match operator can be used when looking for a portion of a string, or -like can be used to perform wildcard searches. PowerShell can also be used to search for a particular value within an array by using -in, -notin, -contains, or -notcontains.

No comments:

Post a Comment

Popular Posts This Week