RS转换IF RS的问题
<%if roomt="特价房"thenresponse.write(rs("特价房"))
elseif roomt="普通房"then
response.write(rs("普通房"))
elseif roomt="普通单人房"then
response.write(rs("普通单人房"))
elseif roomt="普通双人房"then
response.write(rs("普通双人房"))
elseif roomt="标准房"then
response.write(rs("标准房"))
elseif roomt="标准单人房"then
response.write(rs("标准单人房"))
elseif roomt="标准双人房"then
response.write(rs("标准双人房"))
elseif roomt="标准大床房"then
response.write(rs("标准大床房"))
elseif roomt="高级房"then
response.write(rs("高级房"))
elseif roomt="高级大床房"then
response.write(rs("高级大床房"))
elseif roomt="高级单人房"then
response.write(rs("高级单人房"))
elseif roomt="高级双人房"then
response.write(rs("高级双人房"))
elseif roomt="豪华房"then
response.write(rs("豪华房"))
elseif roomt="豪华单人房"then
response.write(rs("豪华单人房"))
elseif roomt="豪华大床房"then
response.write(rs("豪华大床房"))
elseif roomt="豪华双人房"then
response.write(rs("豪华双人房"))
elseif roomt="商务房"then
response.write(rs("商务房"))
elseif roomt="商务大床房"then
response.write(rs("商务大床房"))
elseif roomt="商务双人房"then
response.write(rs("商务双人房"))
elseif roomt="商务单人房"then
response.write(rs("商务单人房"))
elseif roomt="行政房"then
response.write(rs("行政房"))
elseif roomt="江景房"then
response.write(rs("江景房"))
elseif roomt="城景房"then
response.write(rs("城景房"))
elseif roomt="豪华江景房"then
response.write(rs("豪华江景房"))
elseif roomt="豪华城景房"then
response.write(rs("豪华城景房"))
elseif roomt="高级江景房"then
response.write(rs("高级江景房"))
elseif roomt="高级城景房"then
response.write(rs("高级城景房"))
elseif roomt="特别行政房"then
response.write(rs("特别行政房"))
elseif roomt="迷你房"then
response.write(rs("迷你房"))
elseif roomt="套房"then
response.write(rs("套房"))
elseif roomt="标准套房"then
response.write(rs("标准套房"))
elseif roomt="普通套房"then
response.write(rs("普通套房"))
elseif roomt="高级套房"then
response.write(rs("高级套房"))
elseif roomt="豪华套房"then
response.write(rs("豪华套房"))
elseif roomt="行政套房"then
response.write(rs("行政套房"))
elseif roomt="商务套房"then
response.write(rs("商务套房"))
end if
%>
里面怎么样再用IF then呢?比如我调用的是if rs("商务套房")<>""then 后面显示有房<%else%>无房<%end if%>
上面那些应该怎么样能把response.write(rs("商务套房"))改成response.write(if rs("商务套房")<>"" then)
直接改是通不过的,大家教教我谢谢!