Infobox processing is initiated by using the infobox keyword on the appropriate CopiaFacts command that specifies the processing, along with a starting infobox reference. You may use $next_box or $chain to link a whole series of infoboxes if you wish.  The infoboxes are located using $script_locn commands in the active user profile. For high-volume applications you may decide to place the infoboxes in to an Infobox Collection File (IBC).

At the end of each infobox processing sequence, control MUST be transferred to state IIF_PROC_COMPLETE (state 191). Normally this will be done using a command:

$next_box s191

or if you may want to combine this infobox processing sequence with others, you can instead use:

$chain

In the absence of a chain (established with $set_chain) the $chain command is equivalent to a transfer to state 191.

If you do not transfer to this state at the end of infobox processing, unexpected results may occur.

Combining multiple infobox processes

Only one infobox pre- or post- process can be specified to be run from each FS or MCF file.  However it is relatively easy to link up multiple separate infobox sequences without having to modify them, and to retain them for individual use as well. For example if you have two infobox sequences ActionA and ActionB, each of which ends (as it should) by transferring to state 191:

; ActionA.IIF

$type decision

... (do some processing)

$chain

; ActionB.IIF

$type decision

... (do some processing)

$chain

then you can combine them with:

; ActionAB.IIF              ; process A then B

$type decision

$set_chain ActionA,ActionB  ; continue to B when A finishes

$chain                      ; start with A