Skip to content

Numeric Comparisons

Operator Description
arg1 -eq arg2 True if arg1 equals arg2
arg1 -ne arg2 True if arg1 is not equal to arg2
arg1 -lt arg2 True if arg1 is less than arg2
arg1 -le arg2 True if arg1 is less than or equal to arg2
arg1 -gt arg2 True if arg1 is greater than arg2
arg1 -ge arg2 True if arg1 is greater than or equal to arg2