ps/Modules/Cole.PowerShell.Developer/Public/Test-IsTrue.ps1
2023-05-30 22:51:22 -07:00

14 lines
271 B
PowerShell

function Test-IsTrue {
[CmdletBinding()]
param (
$Value
)
if ($Value -is [string] -or $Value -is [int] -or $Value -is [bool]) {
return ('true',1,$true -contains $Value)
}
return $false
}
Set-Alias -Name IsTrue -Value Test-IsTrue