Bash bash function Contibuted by: TimRots $ isEven() { [[ "$(($1%2))" == "0" ]] && echo 0 } $ isEven 4 0