IsCustomFunction

Determines whether a name represents a custom function

IsCustomFunction( name [, type ] )

Returns: Boolean

Argument Description
name
any, required

Name of a custom function. Must not be in quotation marks. If not a defined variable or function name, Lucee generates an error.

type
string, optional

limit to a specific type (closure,lambda,udf), if not set all custom function types are accpeted.

Examples

writeDump(isCustomFunction(realUDF));
writeDump(isCustomFunction(xxx));
testFun = realUDF;
X = 1;
writeDump(isCustomFunction(testFun));
writeDump(isCustomFunction(X))
function realUDF() {
	return 1;
}
function xxx(void) {}

See also