February 2019
Intermediate to advanced
626 pages
15h 51m
English
When comparing numbers, each of the operators -ge (greater than or equal to), -gt (greater than), -le (less than or equal to), and -lt (less than) are simple to use:
1 -ge 1 # Returns true 2 -gt 1 # Returns true 1.4 -lt 1.9 # Returns true 1.1 -le 1.1 # Returns true
String comparison with operators follows the generalised pattern of 0123456789aAbBcCdD..., rather than basing it on a character table (such as ASCII):
Comparison can be culture sensitive when using commands such as Sort-Object with the culture parameter, but comparisons ...
Read now
Unlock full access