2022.2

Table Of Contents
l
Until statement is true:Theloopexecutesuntilthestatementbelowistrue.Thestate-
mentisevaluatedaftertheloopsotheloopwillalwaysrunatleastonce.
l
Until no more elements (for Text, CSV, Database and PDF files only):Theloop
executesaslongasthereareelementsleftasselectedbelow.
l
For Each (for XML and JSON files only):Theloopexecutesforallnodes(bydefault)or
forselectednodesonthespecifiedlevel.Tohavetheloopexecuteonlyonselectednodes,
youneedtoedittheXpath/JsonPathintheCollectionfield(seebelow).Ifthepathdefines
arulethatistrueformorethenonenode/element,acollectionofnodes/elementsis
returnedandtheForEachloopwillgothroughallofthem.
WhenusingaFor EachloopinXMLorJSON,itisnotnecessarytoskiptothe
repeatingnode/elementortohaveaGotosteptojumptoeachsibling,asthisloop
takescareofitautomatically.
l
Maximum iterations on each line:Definesthemaximumnumberofiterationsoccurringatthe
sameposition.Thisexpressionisevaluatedoncewhenenteringtheloop.Thevaluereturnedby
theexpressionmustbeanintegerhigherthan0.
Notethatintheeventofaninfiniteloop,anerrorwillonlyberaisedafterthesetmaximumnum-
berofiterations.
l
Use JavaScript Editor:ClicktodisplaytheEditScriptdialog.
l
No Goto step required:WithXMLandJSONdata,thisoptionpreventstheRepeatstepfrom
automaticallymovingforwardtothenextsibling(withXML)orelement(withJSON).
Withallotherdatatypes,itdisablestheDataMapper'sinfiniteloopdetectionincaseofamissing
Gotostep.ItismeanttobeusedinsituationsthatwouldotherwiserequireadummyGotostep.
l
Collection(onlywithFor Each):
l
ForXML:theXPaththatspecifiestheleveland(optionally)elementstoselectonthat
level.ForanoverviewofXPathfunctions,seeMozilla:XPathFunctions.
Toselectelementsyoucaneitherusestaticvalues,e.g../user[@lastname="Smith"]
orJavaScriptstatements,forexample:=./user[@lastname="{auto-
mation.jobInfo.JobInfo1}"].
InordertouseJavaScript:NotethatsincetheXPathisastring,thereturnvalueofthe
JavaScriptstatementwillbeinterpretedasastring.
l
ForJSON:theJsonPaththatspecifiestheleveland(optionally)elementstoselectonthat
level.ForanoverviewoftheJsonPathsyntax,seehttps://github.com/json-path/jsonpath.
ItisnotpossibletouseJavascriptintheJsonPath.
Page 340