CFLib.org – Common Function Library Project

IsIncluded()

Last updated February 24, 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;
}
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