TagMaster 2.0 Manual  (Table of Contents)
  Chapter 3 , Section 2    
2.3 Looping (Previous) (Next)
 

  The repeat loop is one of the most powerful tools in TagMaster. By using the repeat loop, repetitive commands, such as lists, web pages from templates, or any task that uses the same data repeatedly, will become much simpler to change.

Repeat loops are inherently tied to database files. These files may be edited in your favorite comma-separated values or tab-delimited fields file editor. Microsoft Excel is one of the more functional data editors. Other programs, such as Microsoft Access or FileMaker Pro provide even further automation features to make the creation of updated database files much easier to streamline for the web administrator.

The repeat loop takes the form shown below, and uses the record variable as described in 2.1 of this section (see 2.1, "Accessing database records" ).

Example:

repeat i "database.csv"
include "item.htm"
set thisContent i:1
if thisContent isnot "" then
tag "content" thisContent
end if
end repeat

 

© Copyright 1997-1999 Dataczar Technologies. All rights reserved.