NUMBER1 > NUMBER2 (arithmetic operator)

true if number1 is greater than number2.

Examples

Test if a number is greater than another number:
1
(( n > 42 )) && echo "greater than 42!"
BashSupport Pro is a Bash IDE with support for >try it now!
© 2020–2026 Joachim Ansorg
Imprint
Privacy Policy
Legal