Guest User

Untitled

a guest
Feb 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. if y mod 2 = 0 Then
  2.  
  3. If IsEven(y) Then
  4. ...
  5. End if
  6.  
  7. Function IsEven(ByVal numberToCheck)
  8. If numberToCheck Mod 2 = 0 Then
  9. IsEven = True
  10. Else
  11. IsEven = False
  12. End if
  13. End Function
  14.  
  15. While not objRS.EOF
  16. y=y+1
  17. If IsEven(y) Then
  18. response.Write "Even and type=" + objRS("TYPEID") + "<br>"
  19. If objRS("TYPEID")=5 then
  20. else
  21. End If
  22. Else
  23. response.Write "Odd and type=" + objRS("TYPEID") + "<br>"
  24. If objRS("TYPEID")=4 then
  25.  
  26. elseif objRS("TYPEID")=3 then
  27. response.Write "Success!<br>"
  28. elseIf objRS("TYPEID")=2 then
  29.  
  30. else
  31.  
  32. End If
  33. End If
  34. objRS.movenext
  35. Wend
Add Comment
Please, Sign In to add comment