7.67.52015-05-06

Loop Structures

Name:

Description:

For

...

EndFor

procedure

This command structure allows a series of nested commands to be repeated a specified number of times. Each for statement must have a corresponding endfor statement in order for PlanetPress Talk to know which commands to include in the loop. For… EndFor (procedure)

Repeat

...

Until

procedure

Repeat a sequence of commands until a condition is true. It is similar to a for... endfor loop in that you can nest the loops. It is different from a for... endfor loop in that the loop always executes at least once, and that you tie the number of times the loop repeats to a Boolean condition. For example you might tie the number of times the loop repeats to the occurrence of a piece of data in the data stream.Repeat... Until (procedure)

Search

...

EndSearch

procedure

This command structure allows a series of nested commands to be repeated as long as a specific string of characters (the search string) is found within another string (the target string). After each iteration, the target string contains all the data between occurrences of the search string, excluding the search string. Once the loop is over, target contains the remaining characters of the original data.Search … EndSearch (procedure)

Exit

procedure

Exits from a for...endfor or repeat...until loop.Exit (procedure)