4

The count returns 19, my if statement is looking for anything greater than 0. Sitting here wondering why it's not working for 3 damn minutes then I remember this (https://learn.microsoft.com/en-us/...)

I can't do $variable.count > 0
I have to do $varibale.count -gt 0

: | I like powershell, it's useful for simple small things in windows

Then things like this make me wish I wasn't on windows for work

Happens every damn time, especially after working with any other language we use, i just forget PowerShell likes to be 'special'

Comments
Add Comment