TagMaster 2.0 Manual  (Table of Contents)
     
Appendix A TagMaster Commands
 

 
repeat

Example:

repeat i "database.csv"
end repeat


Repeats the commands between this command and its associated end repeat command for each record in "database.csv". "Database.csv" can be the name of any database file.

To learn about accessing database fields and records, see 2.1, "Accessing database records" .



if-else

Example:

if i is "this text"
if i isnot "this text"
else
end if


The commands between if and its associated else or end if are performed provided that the parameters are matching, in the case of "is", or not matching, in the case of "is not". The commands following else are performed otherwise, if there is an else. An if command must always be followed by an end if line.


tag

Example:

tag "tag name" "text"
tag "tag name"
end tag


If followed by one parameter: The tag referenced by the first parameter ("tag name" above) in the most recently included file is replaced with the text in the second parameter ("text" above).

If followed by two parameters: The tag referenced by the first parameter ("tag name" above) in the most recently included file is replaced with the text included by commands performed between the tag command and its associated end tag command.

tag "tag name"
include "text replacing tag name"
end tag


The tag command is automatically inserted when a file is included using the "Include a file" menu command. To change a tag command from an unnested tag (a tag with two parameters) to a nested command (a tag with one parameter), choose the "Nest a tag" from the Command menu. To change the tag back to an unnested tag (a tag with two parameters), choose "De-nest a tag" from the Command menu.


include

Example:

include "filename.htm"
include "filename.htm" "tag to include"


If followed by one parameter:
The file referenced by the first parameter ("filename.htm" above) is included after the currently being built file or tag.

If followed by two parameters:
The text in the long tag referenced by the second parameter of the file referenced by the first parameter ("filename.htm" above) is included after the currently being built file or tag.

If the include is being performed within a nested tag, the text will be included as a part of the text replacing the tag. Otherwise, the text will simply be added to the end of the file.


run

Example:

run "filename.bld"

Runs the file referenced in the first parameter as though the text were in the current Build file in place of the run command.


set

Example:

set variable "text"

Sets the variable referenced in the first parameter to the object referenced by the second parameter.


new

Example:

new "filename.htm"

Creates a new file of the name listed in the first parameter. Once the file is created, text may then be included into the file.

 

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