Tip>Designer

Block commands in tables

 

Article #:

0010

Contributor:

Peter Ottermann

GF version:

All

Applies to:

Document Logic in tables

Last updated:

July 2, 2001

Description

Document Logic block commands in tables do not support the repetition of partial rows. Depending on how the block commands are positioned, this can affect the logic of previous tasks.

Explanation

When nesting Document Logic tasks in tables, remember that block commands will affect an entire row in a table if the block spans more than one cell. If part of the logic of previous tasks is deleted, the result can be an infinite loop.

There are a few simple rules to follow. Click here to view the rules.

 

For example:

 

PRODUCT

QUANTITY/PRICE

DESCRIPTION

%[RepeatBlockWhile(y>0)] %[x=y]%[y=y-1]

%[DeleteBlockIf(x=2)]

%[Product]

%[Qty]

%[Price]

%[Description]

%[EndBlock()]

%[EndBlock()]

 

More Examples

The examples below describe how to use Document Logic tasks in a table to produce a specific outcome.

 

NOTE

The blocks in the table that will be affected by the logic are highlighted in blue.