Hey there, this site is pretty old now. I've decided to leave it up as I put a lot of work into it and would hate to see it disappear.

Add Tags

  Add Tags >>
 

Tag Recap

First Name:
Last Name:
Message:

I notice that a lot of database driven websites make easy mistakes by not checking for plural words. An example might be "2 vote" or "1 votes". Here is an example of a function using ASP to check for plurals.

function CheckPlural(input) if input <> 1 then CheckPlural = "s" else CheckPlural = "" end if end function

This function can be called like so:

25 Vote<%=CheckPlural(25)%>
Date:2008-03-21
Time:14:34:46
Replies:3
Views:7742