You may want a macro to provide output while it is operating. In simple cases, you can use the verbose keyword to echo commands to the display and display comments as the macro executes. For more information about the verbose keyword, see Example 2 in Invoking Other Macros.
When running more complex macros or macros that contain a lot of commands or comments, you may want to output only certain information (that is, not all commands and comments). In this case, you can use <# setoutput console #> to send the information directly to the console display when it executes.
Example 1
The following example shows how you can send output directly to the console:
<# setoutput console #> This message appears in the console window (whether or not you use verbose mode). <#endsetoutput #>
Example 2
The following example shows how you can send a single argument to the console:
<# puts (msg) #> !================================================================== !================================================================== ! output "msg" to console !================================================================== !================================================================== <# setoutput console #> <# msg; "\n"#> <#endsetoutput #> <# endtmpl #> !================================================================== !================================================================== <# tmpl.puts(“ Hello World” )