Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash condition structure

n1=10
n2=5
if (( $n1>$n2 ))
    then
    echo "n1 is greater than n2"
elif (( $n1<$n2 ))
    then
    echo "n1 is lower than n2"
else
    echo "n1 is equal to n2"
fi
Source by hakin9.org #
 
PREVIOUS NEXT
Tagged: #bash #condition #structure
ADD COMMENT
Topic
Name
6+2 =