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";
}

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson