You use the LIMIT command to conditionally include or exclude the document section to which it is attached.
You can attached a LIMIT command to text, to Template Builder commands, or to a combination of both. To attach a LIMIT command to text, you must add the command in the template itself. You can use the Template View only to apply the LIMIT command to a single command.
A LIMIT command resolves to "true" or "false."
§ If an object is found that meets the specified conditions, the command is "true" and the section is included in the Web page.
§ If an object is not found, the command is "false" and the section is not included in the Web page.
For example, you have a repeated section for each file in a directory, but you use a LIMIT command to include a special section only if a file has a ".DAT" extension.
Each LIMIT command is based on the context of one of the OPEN, REPEAT, or LIMIT commands defined above it in the command hierarchy. You must have at least one OPEN command in the template before you can create a LIMIT command.
See also the section on Special LIMIT Commands.
To add a LIMIT command:
1. Do one of the following:
- In the Template View, select the command you want to LIMIT and click the LIMIT button in the tool bar.
- In the template itself, show the existing commands, select what you want to include in the LIMIT, click ProjectConsole > Add Command, select LIMIT Command, and click OK.
Alternatively, you can add a LIMIT command first, then place all text and commands between the delimiters for the LIMIT command.
2. In the LIMIT Command dialog box, select an object, limit the object either by class or by an And Where expression, and click OK.
To modify an existing LIMIT command, refer to Modifying Existing Commands
The And Where expression specifies criteria that must be met by the object being examined by a LIMIT command. If the criteria are not met by the object, that LIMIT command will be "false".
Expressions consist of operands and operators. Operands are the attributes or literals on either side of an operator. The operands that are available at a given time in the LIMIT command dialog box depend upon the information source domain specified in the current context. Operators specify the test that will be applied to the operands to determine their relationship, for example, the test of equality or the test of inequality.
See also