CFLib.org – Common Function Library Project

IsIncluded()

Last updated February 25, 2002

author

Scott Wintheiser

Version: 1 | Requires: CF5 | Library: UtilityLib

Description:
Checks to see if calling template is base template.

Return Values:
Returns a boolean.

Example:

<cfoutput>
Is this code in an included template? #IsIncluded()#<br>
</cfoutput>

Parameters:

No arguments.

Full UDF Source:

/**
 * Checks to see if calling template is base template.
 * 
 * @return Returns a boolean. 
 * @author Scott Wintheiser (scott@lightburndesigns.com) 
 * @version 1, February 24, 2002 
 */
function isIncluded(){
    IF (getCurrentTemplatePath() NEQ getBaseTemplatePath()) return true;
    else return false;
}

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