📜  在 powershell 变量中不为空检查 - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:50:05.604000             🧑  作者: Mango
代码示例1
if (!$variablename) { Write-Host "variable is null" }
if ($variablename) { Write-Host "variable is NOT null" }