#!/bin/bash # # Demonstration of the arithmetic expressions as tests # for i in {-3..3}; do echo -n "$i: " if ((i)); then echo "$? true" else echo "$? false" fi done exit