RosettaCodeData/Task/Logical-operations/PowerShell/logical-operations.psh
2023-07-01 13:44:08 -04:00

7 lines
248 B
Text

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)
}