1.4

Defining Boolean Values
l
Pre-Processor: Specify the "Type" as "Boolean" and set a default value of either true; or
false;
l
Extraction: Specify the "Type" as "Boolean". The field value must betrueorfalse.
l
JavaScript Expression: Set the desired value toeither true; or false;
Example: record.fields["isCanadian"] = true;
Note
The value must be true , all in lowercase. Any variation in case (True, TRUE) will not work.
Boolean Expressions
Boolean values can also be set using an expression of which the result is true or false. This is
done using operators and comparisons.
Example: record.fields["isCanadian"] = (extract("Country") == "CA");
For more information on JavaScript comparison and logical operators, please see
w3schools.com or developer.mozilla.org.
String Data Type
Strings contain textual data. Strings do not have any specific meaning, which is to say that their
contents are never interpreted in any way.
Defining String Values
l
Pre-Processor: Specify the "Type" as "String" and set a default value as any text
between quotes, such as "This is my text";
l
Extraction: Specify the "Type" as "String". The field value will be extracted and treated
as a string.
l
JavaScript Expression: Set the desired value to any string between quotes.
Example: record.fields["countryOfOrigin"] = "Canada";
Page 166