2022.2

Table Of Contents
Note: Thevaluemustbeallinlowercase:true,false.Anyvariationincase(True,TRUE)will
notwork.
Boolean expressions
Booleanvaluescanbesetusinganexpressionofwhichtheresultistrueorfalse.Thisisdoneusing
operatorsandcomparisons.
Example:record.fields["isCanadian"] = (extract("Country") == "CA");
FormoreinformationonJavaScriptcomparisonandlogicaloperators,pleaseseew3schools.comor
developer.mozilla.org.
Currency
TheCurrencydatatypeisasigned,numeric,fixed-point64-bitnumberwith4decimals.Valuesrange
from-922337203685477.5808to922337203685477.5808.Thisdatatypeisroutinelyusedforfin-
ancialcalculations:itisaspreciseasintegers.
Defining Currency values
l
Preprocessor:
l
IntheStep propertiespane,underProperties,addorselectafield.
l
SpecifytheTypeasCurrencyandsetadefaultvalueasanumberwithupto4decimal
points,followedbyasemicolon;suchas546513.8798;
l
Extraction:ThefieldvaluewillbeextractedandtreatedasaFloat.
l
IntheData Model,selectafield.
l
OntheStep propertiespane,underField DefinitionsettheTypetoCurrency.
l
UnderData Format,specifyhowthevalueisformattedinthedatasource(see"Extract
stepproperties"onpage326;forthedefaultformatsettings,see"Datasourcesettings"on
page223).
l
JavaScript Expression:SetthedesiredvaluetoanyFloatvalue.
Example:record.fields["PreciseTaxSubtotal"] = 27.13465;
Note: WhileCurrencyvaluescanbesettoupto4significantdigits,only2aredisplayedon
screen.
Page 277