Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

not null check in powershell variable

if (!$variablename) { Write-Host "variable is null" }
if ($variablename) { Write-Host "variable is NOT null" }
Source by www.thomasmaurer.ch #
 
PREVIOUS NEXT
Tagged: #null #check #powershell #variable
ADD COMMENT
Topic
Name
9+8 =