APGen Documentation Previous Topic: The SCRIPT Tag Next Topic: Include Directive Parent Topic: APG Script Syntax Reference    APG Script Syntax Reference
APG Output Expression
See Also:

<%# =expression #%>

Writes the results of a script expression to the Output object.

Syntax

<%# = expression #%>

Notes

The <%# =expression #%> syntax is very similar to the <% =expression %> syntax used in ASP.  Both evaluate the script expression and write the results to the output stream.

Example

This example uses APG output expressions:

<%#  Output.Filename = "test.htm"  #%>

<HTML><BODY>
<%#
     Dim n
     n=11
#%>
<%# =n #%> squared is <%# =n*n #%>
</BODY></HTML>

This script generates this output (test.htm):



<HTML><BODY>

11 squared is 121
</BODY></HTML>