2022.2

Table Of Contents
Rule
Asingleruleevaluatesonedatafieldorruntimeparameterusingasingleoperatororfunctionanda
value(the"operand").
Toconstructarule:
1. ClickthedownwardpointingarrownexttoField,thenselectthedatafieldorruntimeparameter
thatshouldbeevaluated.
2. Selecttheoperator.Thedownwardpointingarrowexpandsthelistofoperatorswithwhichthe
datacanbeevaluated.
TheoptionsavailablewilldependupontheDataFieldorParametertype(theyare"typeaware"),
butmosthaveatleast"is equal to"and"is not equal to"asanoption.Forthecompletelistof
optionsperdatatypesee"ConditionalContentscriptdialog"onpage929.
3. EntertheValuethatshouldbeusedfortheconditionalcheck.
l
Values(inStrings)arecase sensitivebydefault;youcanclickthebuttonnexttothevalue
tomakethemcaseinsensitive.
l
DatesshouldbeenteredinISOstandardnotation(yyyy-mm-dd)(seeISO8601).Itisbest
toselectthedateusingthe dateselectionoption.
Itisn'tpossibletoentermorethanonevalueinonerule.Comparisonstomultiplevaluescanbemade
bycombiningrulesinagroup.
Forexample,an"after"and"before"rulecombinedinone"allofthefollowing"groupcanbeusedto
checkwhetheradatefallsbetweentwodates.
Tosavethescript,clickApplyorOK.
Theselectedactionwillbeperformedifthejointgroupsandrulesevaluatetotrue.
If,conversely,theconditionevaluatestofalse,theoppositeactionwillbeperformed.
Toseetheresult,toggletothePreviewtabatthebottomoftheworkspace(orselectView > Preview
Viewonthemenu).
Ifaconditioncannotbemadewiththewizard-forexample,onethatcomparesadatafieldtoa
runtimeparametervalue-youcanclickExpandandeditthecodeofthescript(see"Writingyour
ownscripts"onpage808).Butbecareful:oncethescripthasbeenaltered,thereisnogoingbackto
thewizard.
TakealookattheResourcespane:oneachPrintsectionthatisaffectedbyaConditionalPrintSec-
tionscriptasmalldecoratorappearsifitisskippedwiththecurrentdatarecord.
Page 740