CFML Tags

control Tags

Tag Name Description
CFABORT Aborts the request
CFARGUMENT Used in cffunction definitions to indicate the expected/required parameters for the function.
CFASSERT <CFIF> controls whether the body of the tag is implemented based on a conditional expression.
CFASSOCIATE Used by customtags, to its own attributes to a parent custom tag
CFBREAK For use within the CFLOOP tag, allowing you to break out the current loop iterations
CFCACHECONTENT Used to store a specific amount of content to cache, improving page rendering performance and server memory costs. Use this function when its not necessary to serve dynamic content with every page request. Cache duration can be specified to be any lenth of time using the CACHEDWITHIN attribute. Additionally, cache can be manually flushed by setting the ACTION attribute to 'flush' and the CACHENAME attribute to the name of the cached resource that you wish to flush.
CFCASE Child tag of CFSWITCH. Compares value against evaluated expression of CFSWITCH
CFCATCH For use within the CFTRY tag, allowing you to catch one of more different exceptions
CFCOMPONENT Used to define a CFC. Inside this tag, contains the CFFUNCTION tags. Should only ever be one in a single file.
CFCONTINUE For use within the CFLOOP tag. When this tag is encountered, any code after the continue is not executed and the next loop iteration starts
CFDEFAULTCASE Default case for a parent CFSWITCH tag. This tag in particular will execute if none of the case statements found a matching object
CFELSE <CFIF> controls whether the body of the tag is implemented based on a conditional expression.
CFELSEIF <CFIF> controls whether the body of the tag is implemented based on a conditional expression.
CFERROR Sets up the default error handling to capture for errors in an orderly fashion
CFEXIT Used to exit a currently executing CFML custom tag, or exit the page within a currently executing CFML custom tag or re-executes a section of a CFML custom tag.
CFFINALLY For use within the CFTRY tag. This block will render always after any exception handling
CFFUNCTION Used to define a function within a CFC, or as a UserDefinedFunction (UDF) that can be used in the same context
CFIF <CFIF> controls whether the body of the tag is implemented based on a conditional expression.
CFINTERFACE Used to define an interface. Inside this tag, contains the CFFUNCTION tags. Should only ever be one in a single file.
CFLOOP Provides a number of mechanisms to loop over data structures.
CFPARAM Used to check if a variable exists, and validates its type and value. If the specified variable doesn't exist a default value can also be supplied at this point.
CFPAUSE Pauses the execution of the request for a given amount of time
CFRETHROW Rethrows the existing exception. Must be used inside a CFCATCH tag
CFRETURN Used to return control from inside a function or thread
CFSET Used to declare, initialise or reassign a variable to a value.
CFSILENT Stops any browser output within the scope of this tag.
CFSWITCH Evaluates a specified expression. Parent tag of CFCASE and CFDEFAULTCASE
CFTHROW Throws a new exception, or rethrows an existing one
CFTRY Defines a block to which an error may occur and to be caught in a controlled manner