RosettaCodeData/Task/Logical-operations/PowerShell/logical-operations.ps1
2026-04-30 12:34:36 -04:00

7 lines
248 B
PowerShell

function Test-Boolean ([bool] $a, [bool] $b) {
Write-Host "A and B: " ($a -and $b)
Write-Host "A or B: " ($a -or $b)
Write-Host "not A: " (-not $a)
Write-Host "not A: " (!$a)
Write-Host "A xor B: " ($a -xor $b)
}