1.6

Table Of Contents
// Total is on an even page, set the document Boundary to
the current delimiter
boundaries.set();
}
}
}
Note
The above code could be completely rewritten as:
if(boundaries.find("Invoice Total",region.createRegion(150,220,200,240).found) {
(boundaries.currentDelim % 2) !=0 ? boundaries.set(1): boundaries.set();
}
setVariable()
Method that sets a variable to the specified value, automatically creating the variable if it
doesn't exist yet.
setVariable(varName, varValue)
Sets variable varName to value varValue.
varName
String name of the variable of which the value is to be set.
varValue
Object
Example
This script examines a specific region and stores its contents in a variable in the boundaries.
var addressRegion = region.createRegion(10, 30, 100, 50);
var addressLines = boundaries.get(addressRegion);
boundaries.setVariable("previousLines",addressLines);
totalPages()
Returns an integer value representing the total number of pages inside the current record.
Page 261