Safely converting string to bool in PowerShell

前端 未结 6 1402
孤城傲影
孤城傲影 2020-12-18 19:03

I\'m trying to convert an argument of my PowerShell script to a boolean value. This line

[System.Convert]::ToBoolean($a)

works fine as long

6条回答
提交回复
热议问题