NUMBER1 != NUMBER2 (arithmetic operator)

true if the two numbers are not equal.

Examples

Test if two numbers are not equal:
1
(( n != 42 )) && echo "not equal!"
BashSupport Pro is a Bash IDE with support for != – try it now!
© 2020–2026 Joachim Ansorg
Imprint
Privacy Policy
Legal