Capter 10 : Control Structures
Capítulo 10 : Estructuras de Control
Section 10.2: If statement
Sección 10.2: Sentencia If
********** Las opciones de esta sección son: **********
function.10.02.0 ()
{
if [[ $1 -eq 1 ]]; then
echo "1 was passed in the first parameter";
else
if [[ $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;
fi;
return 0
}