next topic    back to Rev 1 index

Topic 12

Sample expressions producing boolean outputs:

[ $num1 -eq 50 || $num1 -gt 60 ]
[ $num2 -gt 41 && $num2 -lt 75 ]

The first expression checks if the value of num1 variable is equal to 50 OR greater than 60.

The second expression checks if the value of num2 variable is greater than 41 AND less than 75.


next topic     back to Rev 1 index