• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Output

Output within cfscript blocks is done using the WriteOutput function. The use of this function is the same as any other ColdFusion function: WriteOutput(expression ).

Note

WriteOutput differs from CFOUTPUT in that you can use any expression within the WriteOutput function.

For example:

<cfscript> 
  WriteOutput(NOT Val('foo')); 
</cfscript> 

will output the following:

YES 



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint