if else 用法

if(  條件1 )
         符合條件1  ,  所要做的事
else if(  條件2 )
非條件1且符合條件2 ,  所要做的事
else

 非條件1且非條件2 ,  所要做的事

留言