Following code checks if number is odd or even using s function checkEvenOdd
Code:
<% function checkEvenOdd(ByVal intValue) If (intValue MOD 2 = 0 ) Then Response.Write ("The number is <b>even</b><br>") Else Response.Write ("The number is <b>odd</b><br>") End If end function %>
Code:
<% checkEvenOdd(2) %>
The output is
Code:
The number is even .
_________________ M. S. Rakha, Ph.D. Queen's University Canada