My C# Corner
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
UW JS 310 Aut 24 Class 3 notes 22-OCT-2024
All WMI Class Lists
All WMI Class Names list : - Name ...
incorrectly aligned or overlapped by a non-object field
Hi All, Thanks for taking out time to read this post. Can someone help me with this? When I try to run this, System.TypeLoadExeception Error...
UW JS 310 Aut 24 Class 3 notes 22-OCT-2024
Functions are loosely typed in javascript, we are able to pass different types of parameters, too few args, too many argos etc. Keep functio...
No comments:
Post a Comment