Language TEA
| Date: | 07/13/05 |
| Author: | Charles Toepfer |
| URL: | http://teatrove.sourceforge.net/ |
| Comments: | 1 |
| Info: | http://sourceforge.net/projects/teatrove/ |
| Score: |
<%
template bottles()
// TEA version of 99 bottles of beer
foreach (iCount in 1 .. 99 reverse)
{
iCount & " bottle(s) of beer on the wall, " & iCount & " bottle(s) of beer. " &
"Take one down and pass it around, " & (iCount-1) &
" bottle(s) of beer on the wall. "
}
%>
---------------------------------------------
<%
template bottles(Integer iCount)
// TEA version of 99 bottles of beer (recursive)
if ( iCount == null )
{
iCount = 100
}
if ( iCount > 1 )
{
iCount = iCount - 1
iCount & " bottle(s) of beer on the wall, " & iCount & " bottle(s) of beer. " &
"Take one down and pass it around, " & (iCount-1) &
" bottle(s) of beer on the wall. "
call bottles(iCount)
}
%>
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
expression or two. Geez Louise..........