-ceq

ceq is a comparison operator that will test if one numeric or string expression is equal to another,

Syntax
      expression -ceq expression

ceq is a case-sensitive match and will ignore wildcards.

This operator returns True or False.

Examples

PS C:\> 'alpha' -ceq 'alphA'
False
PS C:\> 123 -ceq 123
True
PS C:\> $demo = 'ABC'
PS C:\> $demo -ceq 'ABC'
True

“All animals are equal But some animals are more equal than others” ~ George Orwell, Animal Farm

Related:

-eq - Test for equality
-contains - test for the existence of one item in a collection, array or hashtable.
Syntax - Comparison Operators


© Copyright SS64.com 1999-2014
Some rights reserved