#!/usr/bin/env bash
clear
printf "Capter   10  : Control Structures\n\a"
printf "Capítulo 10  : Estructuras de Control\n"
printf "Section  10.2: If statement\n"
printf "Sección  10.2: Sentencia If\n" 
sleep 3

printf "\n********** Las opciones de esta sección son: **********\n\n"

function.10.02.0 () {
        if [[ $1 -eq 1 ]]; then
                echo "1 was passed in the first parameter";
        elif [[ $1 -gt 2 ]]; then
                echo "2 was not passed in the first parameter";
        else
                echo "The first parameter was not 1 and is not more than 2.";
        fi;
        return 0;
}

declare -f function.10.02.0;

echo;

