2022.2

Table Of Contents
Finding a condition
Whereitisn'tpossibletouseasettingtoextractdataofvariablelength,thekeyistofindoneormore
differencesbetweenlinesthatmakeclearhowbigtheregionisfromwheredataneedstobeextracted.
Whilst,forexample,aproductdescriptionmayextendovertwolines,otherdata-suchastheunitprice
-willneverbelongerthanoneline.Eithertheareaaboveortheonebelowtheunitpricewillbeempty
whentheproductdescriptioncoverstwolines.
SuchadifferencecanthenbeusedasaconditioninaConditionsteporaCaseinaMultipleConditions
step.
AConditionstep,aswellaseachCaseinaMultipleConditionsstep,canonlycheckforonecondition.
Tocombineconditions,youwouldneedascript.
Using a Condition step or Multiple Conditions step
UsingaConditionstep("Conditionstep"onpage253)oraMultipleConditionsstep("MultipleCondi-
tionsstep"onpage256)onecoulddeterminehowbigtheregionisthatcontainsthedatathatneedsto
beextracted.
IneachofthebranchesundertheConditionorMultipleConditionsstep,anExtractstepcouldbe
addedtoextractthedatafromaparticularregion.TheExtractstepscouldwritetheirdatatothesame
field.
Note: Datacannotbeextractedmorethanonceinanyrecord,unlesstheExtractstepsaremutu-
allyexclusive.ThisisthecasewhentheyarelocatedindifferentbranchesofaConditionstepor
MultipleConditionsstep.
InsideaDetailtable,multipleExtractstepsmayextractthesamedatabuteachofthemwillcre-
ateanewchildrecordintheDetailtable.
IfyouticktheAppend values to current recordoptionwhenseveralstepsareextractingthesame
field,thestepwillerrorout.
CreateandedittheExtractstepinthe'true'branch,thenright-clickthestepontheStepspane,
selectCopyStep,andpastethestepinthe'false'branch.Nowyouonlyhavetoadjusttheregion
fromwhichthisExtractstepextractsdata.
TolearnhowtoconfigureaConditionsteporaCaseinaMultipleConditionsstep,see"Configuringa
Conditionstep"onpage255.
Page 246