1. If elseif .. 的每個分支都是獨立的表達式,只有在前壹個分支沒有匹配才進行後壹個分支的表達式判斷。 如:
if x=1 the
do1
elseif x=2 and y=1 then
do2
...
以上 兩個條件表達式可以沒有任何關系,只有第壹個x<>1時才會進行x=2 and y=1的表達式判斷。
2. select case壹般用於對同壹個表達式不同結果值分支的語句。如:
select case x+2
case 1
do1
case 2,3
do3
case else
do4
end select