HelpCruiser ®

HelpCruiser
Title
Contents
Working with a project
Creating documentation
Importing a project
Insertion
Editing object properties
Templates
   Template language
     Loops
     Conditions
     Macros
     Comments
Printing
Keywords
Links
Styles
Project properties
Program settings
How to register
Our software

Loops


Syntax:

<repeat name="loop name"></repeat  name="loop name" >


Loops represent the Pascal/C while loop and  let HelpCruiser process the block zero or more times.


Loop

Description

<repeat name="ITEMS">

<ITEM>

  loop body

</ITEM>

</repeat name="ITEMS">

Run through all chapters of a project.

<repeat name="SECTIONS">

<SECTION>

  loop body

</SECTION>

</repeat name="SECTIONS">

Run through all (only 2 in the current version) columns of a project TOC.


Example

<repeat name="ITEMS">

<ITEM>

<repeat name="SECTIONS">

<SECTION>

<if name="SectionIndexIs" eq="1">

<macro name="CURITEMTITLE"/> // Chapter title

<else name="SectionIndexIs"/>

<macro name="CURITEMID"/> // Chapter ID

</if name="SectionIndexIs">

</SECTION>

</repeat name="SECTIONS">

</ITEM>

</repeat name="ITEMS">



Prev Next

Copyright © 2005, SunRav Software

http://www.helpcruiser.com