"FALSE" value being removed
memphisraynz opened this issue · 4 comments
memphisraynz commented
Properties with the value of FALSE are having the value stripped.
Have multiple columns where the value is false, after transposing the value is now null.
MScholtes commented
memphisraynz commented
Yes it is.
I did find a solution. Looks like the If statement was returning false.
Found that if the If statement on line 70 is changed to 'if (-not [string]::IsNullOrEmpty($InputObject.($_)))' it works
MScholtes commented
Hello @memphisraynz,
I released a new version of Transpose-Object today. My solution differs slightly from yours as I want to keep an empty string preserved. Hope that's fine for you.
Greetings
Markus
MScholtes commented
Solution provided