initial Commit

This commit is contained in:
Torsten Brendgen
2026-06-27 00:36:04 +02:00
commit 4b83abc7f2
27 changed files with 1702 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
function ConvertTo-ConfigurationDataExpressionBoolean {
[CmdletBinding()]
Param(
[AllowNull()]
$Value
)
if($null -eq $Value){
return $false
}
if($Value -is [bool]){
return $Value
}
if($Value -is [int]){
return $Value -ne 0
}
if($Value -is [string]){
if($Value -match "^(?i:true|false)$"){
return [bool]::Parse($Value)
}
return $Value.Length -gt 0
}
if($Value -is [System.Array]){
return @($Value).Count -gt 0
}
return [bool]$Value
}