Thursday, April 1, 2010

Powershell implicit conversion on relational operator


PS > "1" -eq 1
True
PS > "1 " -eq 1
False
PS > 1 -eq "01"
True
PS > "01" -eq 1
False
PS >


Here the whole point is to show powershell converts right hand side operand to left hand data type.

No comments:

Node.JS rest api Tutorials