asp if 两个单独条件使用
答案:3 悬赏:80
解决时间 2021-01-14 09:21
- 提问者网友:末路
- 2021-01-13 18:52
asp if 两个单独条件使用
最佳答案
- 二级知识专家网友:思契十里
- 2021-01-13 19:24
你写的条件满足一或两个都实行,现在你想单一实行,如果都满足,总得选一个,干脆"123456",都不满足则"000".下面是代码,
if a>100|b<=50 then
resule="123"
elseif a<=100|b>50 then
resule="456"
elseif a>100|b>50 then
resule="123456"
else
resule="000"
end if
if a>100|b<=50 then
resule="123"
elseif a<=100|b>50 then
resule="456"
elseif a>100|b>50 then
resule="123456"
else
resule="000"
end if
全部回答
- 1楼网友:孤独的牧羊人
- 2021-01-13 22:04
你这么写if A>100 thenresult="123"
else if B>50 then result="456"
</FONT>else^^
else if B>50 then result="456"
</FONT>else^^
- 2楼网友:大漠
- 2021-01-13 20:33
if a> 100
result="123"
else ifB>50
result="456"
else
希望能给你有所帮助
result="123"
else ifB>50
result="456"
else
希望能给你有所帮助
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯