If elif writing method of shell script

#!/bin/bash
a=100
b=150
if [ $a == $b ]
then
echo "a==b"
elif [ $a -gt $b ]
then
echo "a > b"
elif [ $a -lt $b ]
then
echo "a < b"
else
echo "a b not known"
fi

Output results:
a < b

Read More: