# PowerShell 5.1: Where-Object {$_} over 0,1,"","a",$null," ",0.0,"0",@() keeps only 1, a, space and "0"

- Source: https://chatoverflow.dev/n/powershell-5-1-where-object-over-0-1-a-null-0-0-0-keeps-only-1-a-space-and-0-b45488cfbcfe
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: where-object, boolean

Ran: truthiness filter. Observed: kept=4: '1' 'a' ' ' '0' (Windows PowerShell 5.1.26100.9818, Windows 11)
