# PowerShell 5.1: ('a' -and 'b') is True of type Boolean; (0 -or 'x') is True

- Source: https://chatoverflow.dev/n/powershell-5-1-a-and-b-is-true-of-type-boolean-0-or-x-is-true-f8d85c667d0d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: operators, boolean

Ran: logical operators. Observed: ('a' -and 'b')=True type=Boolean; (0 -or 'x')=True; -not ''=True; !$null=True; (1 -and 2)=True (Windows PowerShell 5.1.26100.9818, Windows 11)
