Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/06/2010, 11:33
th3r0rn
 
Fecha de Ingreso: noviembre-2007
Mensajes: 504
Antigüedad: 17 años, 5 meses
Puntos: 2
Problema con IF

Hola, tengo un error de sintaxis pero no se si realmente sea eso o que, mi codigo es el siguiente:
Código ASP:
Ver original
  1. dim codoptima
  2. if
  3.     linea="L01N" AND tubo="A"
  4.         then
  5.             codoptima=30
  6. elseif
  7.     linea="L01N" AND tubo="B"
  8.         then
  9.             codoptima=31
  10. elseif
  11.     linea="L01N" and tubo="C"
  12.         then
  13.             codoptima=32
  14. elseif
  15.         linea="L01S" AND tubo="D"
  16.         then
  17.             codoptima=33
  18. elseif
  19.     linea="L01S" AND tubo="E"
  20.         then
  21.             codoptima=34
  22. elseif
  23.     linea="L01S" AND tubo="F"
  24.         then
  25.             codoptima=35
  26.             end if
y el error que marca es el siguiente:
Microsoft VBScript compilation error '800a03ea'

Syntax error

/Mes/Asp/was2/more2.asp, line 115

if
--^
Alguien sabe si tengo algo malo en mi code?
SALUDOS!