vbscript循环语句_vbscript循环

互联网   2023-05-20 19:56:50


(相关资料图)

1.使用判断语句,在满足一定条件时不执行,比如s=0 for I=1 to 5 if 2 then s=I end ifnext 2。

使用continue跳出当前循环,继续执行s=0 for I=1 to 5 if I==2 then continue//并跳出当前循环,end if next。

本文到此结束,希望对大家有所帮助。