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...
How to read *.ini file in powershell, ps, c#
if you open up ini file from command prompt using type command or get-content from powershell, the output you get will be sparse with space...
Create MHT from HTML in Powershell
$adSaveCreateNotExist = 1 $adSaveCreateOverWrite = 2 $adTypeBinary = 1 $adTypeText = 2 function SaveFileTo($msg,$mhtp){ $strm=New-Obje...
No comments:
Post a Comment