Category: PoshBytes

PoshBytes

PoshBytes: What The Blank!

PoshBytes: What The Blank! In PowerShell, a value that *looks* blank might still contain spaces or tabs. In this PoshBytes short, we explore the difference between IsNullOrEmpty() and IsNullOrWhiteSpace() so your scripts can detect truly blank values. This post is a companion for the video embedded below. Scroll down to see the code from the video. Checking if a string is...