@pmoncho said in Powershell "-eq" operator and "False":

I am always confused by single vs double quotes and when to use them. I will take your advice and use single first.

Single quotes are literal, double quotes resolve variables, expressions, cmdlets, anything with a $ or $() in double quotes.