1.if if的语法格式 if conditon then command1 command2 ``` commandn fi 2.if else if conditon then command1 command2 ``` commandn else command1 command2 ``` commandn fi 3.if elseif else if conditon then command1 command2 ``` commandn else if conditon command…