Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

conditional statements in linux

read x
read y
if (($x > $y)); then
    echo "X is greater than Y";
elif (($x < $y)); then
    echo "X is less than Y";
else
    echo "X is equal to Y";
fi
 
PREVIOUS NEXT
Tagged: #conditional #statements #linux
ADD COMMENT
Topic
Name
5+2 =