initial Commit
This commit is contained in:
21
Private/Test-ConfigurationDataValueIsEmpty.ps1
Normal file
21
Private/Test-ConfigurationDataValueIsEmpty.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user