SyntaxFix
Write A Post
Hire A Developer
Questions
if (-not ([string]::IsNullOrEmpty($version))) { $request += "/" + $version }
You can also use ! as an alternative to -not.
!
-not