if( a==1 && b==1) 这样写:if a = 1 and b = 1 then-- 里面写if成立情况的代码else-- else情况end if; if(a==1 | | b==1) 这样写:if a = 1 or b = 1 then-- 里面写if成立情况的代码else-- else情况end if;