Hola, tengo un problema, con solo usar else me funcionaba bien pero quiero usar elseif y me da este error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/Mes/Asp/was2/monitor2.asp, line 498
if saving <0 then response.write("<td bgcolor= '#FF0000'> "&saving&" KG</td>") elseif saving >0 Response.Write("<td bgcolor='#00FF00'>"&saving&" KG</td>") end if
--------------------------------------------------------------------------------^
Mi codigo:
Código ASP:
Ver originalresponse.write("<td>"®istrosAVG3n.fields("promedio")&"</td>")
if OP<=0 then response.write("<td> "&op&"<img src='http://www.pact-oil.co.uk/images/error.gif'</a></td>") else response.write("<td>"&op&"<img src='http://www.hospitalsierrallana.com/imagenes/gif_ok.gif'</a></td>") end if
if saving <0 then response.write("<td bgcolor= '#FF0000'> "&saving&" KG</td>") elseif saving >0 Response.Write("<td bgcolor='#00FF00'>"&saving&" KG</td>") end if
response.write("</tr>")