Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要写逻辑
If y=1 then y=1; else y=y+x and z=5;
一切正常,但语句的第二部分(和 x=5)不起作用。
听起来你想这样做:
if y^=1 then do; y=y+x; z=5; end;