例子if text=“” thenmsgbox“X"elsemsgbox "OK"end if '结束时必须end if,否则提示错误。end if其实是把if结束,就好像开门就一定关门咯。 凡是用if就一定要end if。
就是缺少“end if”撒
你的语名没写全啊加上end if