Description

Suppresses output produced by CFML within a tag's scope.

Category

Syntax

<cfsilent> 
... 
</cfsilent>

See also

cfcachecfflushcfheadercfhtmlheadcfincludecfsettingWriting and Calling User-Defined Functions in the Developing ColdFusion Applications

Usage

This tag requires an end tag.

Example

<h3>cfsilent</h3> 

<cfsilent> 
<cfset a = 100> 
<cfset b = 99> 
<cfset c = b-a> 
<cfoutput>Inside cfsilent block<br> 
b-a = #c#</cfoutput><br> 
</cfsilent> 

<p>Even information within cfoutput tags does not display within a 
cfsilent block.<br> 
<cfoutput> 
b-a = #c# 
</cfoutput> 
</p>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy