CFSILENT

CFSILENT suppresses all output that is produced by the CFML within the tag's scope.

See also CFSETTING.

Syntax

<CFSILENT>

Example

cfsilent

<HTML>
<HEAD>
<TITLE>CFSILENT</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>CFSILENT</H3>

<!--- This example shows the use of CFSILENT --->

<CFSILENT>
<CFSET a=100>
<CFSET b=99>
<CFSET c=b-a>
<CFOUTPUT>#c#</CFOUTPUT>
…
</CFSILENT>
<P>
Even information within CFOUTPUT tags does not appear within
the CFSILENT block.<BR>
b-c = <CFOUTPUT>#c#</CFOUTPUT>
</P>
</BODY>
</HTML>

cfsilent

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.