|
APG Script Syntax Reference |
|
See Also: |
Writes the results of a script expression to the Output object.
<%# = expression #%>
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.
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>