contents.gifindex.gif

@Irp - Indefinite Repeat Directive

Syntax

@IRP dummy_arg ( arg [,arg]... ) {block}

dummy_arg - A dummy argument

arg - An actual argument, or dummy argument preceded by a "?"

block - A block of text

Use

@IRP causes the block to be repeated in the source file n times, where n equals the number of arguments contained in the parentheses. Each time the block is repeated, the dummy argument takes on the value of the next successive argument.

Example

@IRP A (1, ^h0A,0) {B = ?A;}

results in:

B = 1 ;
B = ^H0A ;
B = 0 ;

which is inserted into the source file at the location of the @IRP directive. Multiple assignments to the same identifier cause an implicit OR to occur.


See Also

@irpc