I have this piece of code in my script. It is evaluating as True even though (by my understanding), it should evaluate as False. Can someone explain what I am doing wrong, and how to fix it.
$port = '172.27.1.79'
if ($port.substring(0,3) = 'IP_') {
write-host 'True'
} else {
write-host 'False'
}
Thanks you!
Terry