private sub command1_click()
input "x=";x
select case x
case is>=0
y=x+2
case 0
y=0
case is<0 或 otherwise
y=x-2
endselect
?"y=";y
endsub
或
private sub command1_click()
input "x=";x
if x>=0
y=x+2
elseif x=0
y=0
else
y=x-2
endif
?"y=";y
endsub
温馨提示:内容为网友见解,仅供参考