Nested ifs
From Linux Shell Scripting Tutorial - A Beginner's handbook
You can put if command within if command and create the nested ifs as follows:
if condition then if condition then ..... .. do this else .... .. do this fi else ... ..... do this fi