RosettaCodeData/Task/Logical-operations/PowerShell/logical-operations.psh

8 lines
248 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
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)
}