If Else For Integers

Create Variable

age=23

Create If Else Statement

The code below in plain English: If the variable age is greater than 17, then return “Adult” otherwise return “Child”.

if (( "$age" > 17 )); then
    echo "Adult"
else
    echo "Child"
fi
Adult