powershell - $Variable not recognized as $null -
I have a SP list that pulls the sharepoint sites data. If it is empty then the variable still says That's not it.
$ SPSites = ($ employeeAITIM .field ["SharePoint site membership"]). FEATURESWEELSTEXT ($ employee AITIM ["SharePoint Site Membership"]) PSC: \ Windows \ System 32 & gt; $ SPSITES PS C: \ Windows \ system32 & gt; $ Spsites.COUNT 1 PS C: \ Windows \ system32 & gt; Test-path variable: \ spsites true
What's going on here? Is this white space? How can I not do if the $ null
statement?
I found this, but I need to say the opposite that if there is no zero or white space then this
if ([string] :: IsNullOrWhiteSpace ($ spsites))
Comments
Post a Comment