NUMBER1 < NUMBER2 (arithmetic operator)

true if number1 is less than number2.

Examples

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