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
UW JS 310 Aut 24 Class 2 notes 15-OCT-2024
Objects are complex data type Const myObj = {}; console.log(myObj); const person = { firstName : ‘S’, lastName: ‘Man’, Age: 4 } person...
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...
All WMI Class Lists
All WMI Class Names list : - Name ...
No comments:
Post a Comment