githubEdit

WriteOutput

Print a message with line break to the buffer

Method Signature

WriteOutput(message=[any])

Arguments

Argument
Type
Required
Description
Default

message

any

true

The message to print

Examples

Output the literal string "Hello World"

Run Examplearrow-up-right

writeOutput( "Hello World" );

Output the equivalent string as a variable

Run Examplearrow-up-right

greeting = "Hello World";
writeOutput( greeting );

Using the encodeFor argument

CF2016+ Passing in html to the encodeFor argument wraps the result with a call to encodeForHTML.

Run Examplearrow-up-right

Result: Hello Pete

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?