Answers for "comparing strings in powershell"

1

comparing strings in powershell

$name = "Curt"
$anotherName = "Alicia"

echo ($name -eq $anotherName) # Equal (false)
echo ($name -lt $anotherName) # Less Than (false)
echo ($name -gt $anotherName) # Great Than (true)
Posted by: Guest on April-12-2021

Code answers related to "comparing strings in powershell"

Browse Popular Code Answers by Language