VB(VisualBasic)中if then 多重语句镶嵌的规律是什么?
来源:百度知道 编辑:UC知道 时间:2024/05/26 23:33:23
if then镶嵌语句中应"由外到内"计算还是"由内到外"计算?
由外到内:
If a = 1 then
if b = 4 then
if pvc=aaa then
else
end if
elseif b=3 then
end if
else
if v = 100 then
else
end if
end if
执行顺序:如果a=1以后:
如果b=4
否则
……
先从上到下,再从内到外.