NUMBER1 == NUMBER2 (arithmetic operator)

true if the two numbers are equal.

Examples

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