Skip to Main Content
Learn PowerShell Core 6.0
book

Learn PowerShell Core 6.0

by David das Neves, Jan-Hendrik Peters
July 2018
Beginner content levelBeginner
552 pages
13h 18m
English
Packt Publishing
Content preview from Learn PowerShell Core 6.0

Comparison operators 

Comparison operators are needed to create expressions and conditions. Comparison operators are always between two objects, one on the left and one on the right. All of them return a Boolean value, either $true or $false, unless you don't compare a list of objects. In the latter scenario most operators would return the matching objects. For all of the comparison operations, there are additional keywords available to work case-sensitive (leading c character) or explicitly case-insensitive (leading i character). Case-sensitivity is a feature to not ignore upper and lower cases between two variables. Default operators work case-insensitive and are marked in bold. This gives you simple guidance. For the first steps, you only ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PowerShell and WMI

PowerShell and WMI

Richard Siddaway

Publisher Resources

ISBN: 9781788838986Supplemental Content