boolean = IsOdd(numberinput)
Example Usage:
ASP Source Code:<% dim i for i = 1 to 900 response.write IsOdd(i) & "<BR>" next %>
<% Private Function IsOdd(byVal lngInput) lngInput = CLng( lngInput ) if lngInput = 0 then IsOdd = Null : Exit Function Select Case CLng( Trim( Right(lngInput, 1) ) ) Case 1, 3, 5, 7, 9 IsOdd = True Case 2, 4, 6, 8, 0 IsOdd = False Case Else IsOdd = Null End Select End Function %>