if x... then 
  ....
elseif  ....then 
  .....
else 
  .....
end if

解决方案 »

  1.   

    除了楼上说的,还有一个办法:if x... then 
      ....
    else if ....then 
         .....
         else 
         .....
         end if
    end if具体用那个,看你的逻辑关系
      

  2.   

    多条件用
    Select Case
         Case A
               .....
         Case B
               .....
    .....
    End Select
    好些
      

  3.   

    if x... then 
      ....
    else if ....then 
        .....
        else 
        .....
        end if
    end if
      

  4.   

    还是用
    select case
      case a:
        ...
      case b:
        ...
      ...
    end select