Fundamentals6 / 16
Up next

Comparison operators

$x = 5
# comparisons are words, not symbols
Write-Output ($x -eq 5)
Write-Output ($x -ne 3)
Write-Output ($x -lt 10 -and $x -gt 0)
What you're solving

-eq -ne -lt -gt spelled out