2022.2

Table Of Contents
Defining Object values
l
Preprocessor:
l
IntheStep propertiespane,underProperties,addorselectafield.
l
SpecifytheTypeasObjectandsetadefaultvalueasasemi-colon.
String
Stringscontaintextualdata.Stringsdonothaveanyspecificmeaning,whichistosaythattheircon-
tentsareneverinterpretedinanyway.
Defining String values
l
Preprocessor:
l
IntheStep propertiespane,underProperties,addorselectafield.
l
SpecifytheTypeasStringandsetadefaultvalueasanytextbetweenquotes,followedby
asemicolon.
Example"This is my text";
l
Extraction:Thefieldvaluewillbeextractedandtreatedasastring.
l
IntheData Model,selectafield.
l
OntheStep propertiespane,underField DefinitionsettheTypetoString.
l
JavaScript Expression:Setthedesiredvaluetoanystringbetweenquotes.
Example:record.fields["countryOfOrigin"] = "Canada";
Building String values
Stringvaluescanbemadeupofmorethanjustaseriesofcharactersbetweenquotes.Hereareafew
tipsandtrickstobuildstrings:
l
Bothsingleanddoublequotescanbeusedtosurroundstringsandtheywillactinpreciselythe
samemanner.So,"thisisastring"and'thisisastring'meanthesamething.However,it'suseful
tohavebothinordertoremovetheneedforescapingcharacters.Forinstance,"I'mfine!"works,
but'I'mfine!'doesnotsinceonly'I'isproperlyinterpreted.'I\'mfine!'works(escapingthe'witha
\).
l
Itispossibletoputmorethanonestring,aswellasvariablescontainingstrings,bycon-
catenatingthemwiththe+operator.Forexample,"Hello " + sourceRe-
cord.property.FirstName + ", nice to meet you!".
l
Addingmoredatatoanexistingstringvariableorfieldispossibleusingacombinationofcon-
catenationandassignment.Forexample,afterthestatementsvar myVar = "Is this the
Page 283