Question: is empty or null powershell?
Answer: When the variable is evaluated, it returns False and then writes to host “Your string is NULL or EMPTY.” $String = '' If([string]::IsNullOrEmpty($String)){ Write-Host "Your string is NULL or EMPTY." } Else { Write-Host "Your string is not EMPTY." }