Active C Pages - Demoscond.acp counter.acp env.acp nat_chars.acp params.acp post.acp props.acp ssi.acp
| Conditional ExampleConditional example:
hello
While loop example:
9 8 7 6 5 4 3 2 1 0
For loop example:
0 1 2 3 4 5 6 7 8 9
And this is a test for the join tag...
Source code:
<HTML>
<BODY>
<H1>Conditional Example</H1>
<BRACE>
<% int hello = 1; %>
<% int loop = 10; %>
Conditional example:<BR><BR>
<IF hello \>
hello
<ELSEIF !hello \>
goodbye
<ELSE>
Well this won't happen
</IF>
<BR><BR>
While loop example:<BR><BR>
<WHILE loop -- \>
<%=loop%>
</WHILE>
<BR><BR>
For loop example:<BR><BR>
<FOR loop = 0; loop < 10; loop ++ \>
<%=loop%>
</FOR>
<BR><BR>
</BRACE>
And this is a test for the join tag...<BR><BR>
<JOIN %%DOC*ROOT%%/ACP/Demos/test>
<HR>
<B>Source code:</B><BR><BR>
<% ACPOUT_IncludeSource( out, ACP_GetDirOfRequestedFile( acp ), "/cond.acp" ); %>
</BODY>
</HTML>
|