2022.2

Table Of Contents
Defining Integer values
l
Preprocessor:
l
IntheStep propertiespane,underProperties,addorselectafield.
l
SpecifytheTypeasIntegerandsetadefaultvalueasanumber,suchas42.
l
Extraction:Thefieldvaluewillbeextractedandtreatedasaninteger.
l
IntheData Model,selectafield.
l
OntheStep propertiespane,underField DefinitionsettheTypetoInteger.
l
JavaScript Expression:SetthedesiredvaluetoanyIntegervalue.
Example:record.fields["AnswerToEverything"] = 42;
Building Integer Values
Integerscanbesetthroughafewmethods,allofwhichresultintoanactualintegerresult.
l
Direct attribution:Assignanintegervaluedirectly,suchas42,99593463712,record.field-
s.Total;ordata.extract("TotalOrdered");.
l
Mathematical operations:Assigntheresultofanymathematicaloperation.Forexample:
22+51,3*6,10/5,record.fields["InvTotal"],orsourceRe-
cord.property.SubTotal.
FormoreinformationonmathematicsinJavaScript,seew3Schools-MathematicalOperators.
Formoreadvancedmathematicalfunctions,seew3schools-MathObject.
Note: Whenaddingnumbersthatarenotintegers,forinstance4.5 + 1.2,around towards
zeroroundingisappliedaftertheoperationwasmade.
Inthepreviousexample,theresult,5.7,isroundedto5.
Inanotherexample,-1.5 - 1resultsin-2
Object
Objectsholdaddressesthatrefertoobjects.Youcanassignanyreferencetype(string,array,class,or
interface)toanObjectvariable.AnObjectvariablecanalsorefertodataofanyvaluetype(numeric,
Boolean,Char,Date,structure,orenumeration).
Page 282