I used “true” instead of “$True” in a power shell script. It didn’t error. It didn’t warn. It just evaluated to false.
So doesn’t behave like a strongly typed language to me.
So doesn’t behave like a strongly typed language to me.
[bool] $x = "true"
MetadataError: Cannot convert value "System.String" to type "System.Boolean". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0.