Files
Resolve-DSCConfigurationData/Private/Test-ConfigurationDataValueIsEmpty.ps1
Torsten Brendgen 4b83abc7f2 initial Commit
2026-06-27 00:36:04 +02:00

22 lines
364 B
PowerShell

function Test-ConfigurationDataValueIsEmpty {
[CmdletBinding()]
Param(
[AllowNull()]
$Value
)
if($null -eq $Value){
return $true
}
if($Value -is [string]){
return [string]::IsNullOrWhiteSpace($Value)
}
if($Value -is [System.Array]){
return @($Value).Count -eq 0
}
return $false
}