|
Get SteelArrow!
|
|
|
|
<SAOUTPUT/>
|
|
|
|
|
|
|
|
Return to Tag List |
|
The SAOUTPUT tag allows the output of variables, or expressions. These values are
wrapped within '#' characters. SAOUTPUT can be used recursively to scope variable output
within variable output. The global namespace is checked first, and then the "scoped"
namespace.
|
|
Attributes:
SCOPE | variable scope to apply to "output" |
VALUE | variable or expression to ouput |
AUTOLOOP | variable or expression to auto-loop over |
|
|
|
The following is an example of SAOUTPUT;
|
|
<SASET NAME=var VALUE="Testing 123">
<!--- Simple value output --->
<SAOUTPUT VALUE=var>
<!--- No 'SCOPE=' means global namespace --->
<SAOUTPUT>#var#</SAOUTPUT>
<!--- The next line puts us in 'SESSION' namespace --->
<!--- (The global) #var# will still be resolved --->
<SAOUTPUT SCOPE="SESSION">#userID# #var#
<!--- The next line puts us in 'CGI' namespace --->
<SAOUTPUT SCOPE="CGI">#REMOTE_ADDR#</SAOUTPUT>
<!--- Now we are back in 'SESSION' namespace --->
#time#</SAOUTPUT>
<!--- AUTOLOOP sets the scope and automatically repeats all
lines of code for each record in the specified object --->
<SAOUTPUT AUTOLOOP=dbQuery>
<!--- Outputs all 'columName' rows within dbQuery --->
#columnName#
</SAOUTPUT>
|
|
|
|