'Powershell if -eq and -ieq are case in-sensitive and serves same purpose or -ieq needs to be used in specific scenario?

if ("True" -eq "true") {
  Write-Host "Hello"
} 
else {
  Write-Host "World"
}

Output: "Hello"

if ("True" -ieq "true") {
  Write-Host "Hello"
} 
else {
  Write-Host "World"
}

Output: "Hello"

If both serve the same purpose, is there any need for -ieq?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source