You are viewing a single comment's thread. Return to all comments →
This is the Right way to write the code in simple way to how people understand.
read X read Y
if [[ Y ]] then echo "X is less than Y"
elif [[ Y ]] then echo "X is greater than Y"
elif [[ Y ]] then echo "X is equal to Y"
fi
Seems like cookies are disabled on this browser, please enable them to open this website
Comparing Numbers
You are viewing a single comment's thread. Return to all comments →
This is the Right way to write the code in simple way to how people understand.
read X read Y
if [[ Y ]] then echo "X is less than Y"
elif [[ Y ]] then echo "X is greater than Y"
elif [[ Y ]] then echo "X is equal to Y"
fi