SyntaxFix
Write A Post
Hire A Developer
Questions
As in many other programming and scripting languages you can do so by adding ! in front of the condition
!
if (![string]::IsNullOrEmpty($version)) { $request += "/" + $version }