How about:
<cffunction returntype="string" name="s">
<cfargument type="numeric" name="num">
<cfscript>
if (num neq 1)
return "s";
else
reutrn "";
</cfscript>
</cffunction>
#getGifts.recordCount# Gift#s(getGifts.recordCount)#
Perhaps a second function y() to handle the y/ies case?
Cheers,
Robin
"Andrew Dickinson" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
>
> Should be easy.
>
> I've written some code to add an "s" on the end of a word if the
> record count is either zero or plural.
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/