在下面的代码中,我需要检查版本字符串是否为空,然后将其值附加到请求变量.
if ([string]::IsNullOrEmpty($version)) { $request += "/" + $version }
如果有条件,如何检查?
powershell
powershell ×1