14 lines
276 B
PowerShell
14 lines
276 B
PowerShell
function Test-IsFalse {
|
|
[CmdletBinding()]
|
|
param (
|
|
$Value
|
|
)
|
|
|
|
if ($Value -is [string] -or $Value -is [int] -or $Value -is [bool]) {
|
|
return ('false',0,$false -contains $Value)
|
|
}
|
|
|
|
return $false
|
|
}
|
|
|
|
Set-Alias -Name IsFalse -Value Test-IsFalse |