CFLib.org – Common Function Library Project

SiNo(b)

Last updated March 19, 2004

author

Giampaolo Bellavite

Version: 1 | Requires: CF5 | Library: UtilityLib

Description:
The same as YesNoFormat() function, but in Italian. Returns "S�"("No") if input is True (False). Returns "Boh" if input is not a boolean value.

Return Values:
Returns a string.

Example:

<cfoutput>
1 = 1? #SiNo(1 EQ 1)#
</cfoutput>

Parameters:

Name Description Required
b A boolean value. Yes

Full UDF Source:

/**
 * The same as YesNoFormat() function, but in Italian.
 * 
 * @param b 	 A boolean value. (Required)
 * @return Returns a string. 
 * @author Giampaolo Bellavite (giampaolo@bellavite.com) 
 * @version 1, March 19, 2004 
 */
function SiNo(b) {
	if (isBoolean(b)) {
		if (b) return "S�";
		else return "No";
	} else return "Boh";
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson