NUMBER1 <= NUMBER2 (arithmetic operator)

true if number1 is less than or equal to number2.

Examples

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