2022.2

Table Of Contents
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.
Showingorhidingseveralelementswithoneconditionalscript
Toapplyoneconditionalcontentscripttoseveralelements,aCSSclassorHTMLelementneedstobe
usedastheselectorofthescript.Whenyouselectmultipleelementsandcreateanewconditionalcon-
tentscriptfollowingtheactionsdescribedin"ShowingorhidingelementsusingtheConditionalContent
Scriptwizard"onpage735,aCSSclasswillbeappliedautomatically.
Ifyouhavecreatedthescriptyourself,orifyouwantascripttoapplytomoreelementslateron,you
havetodothismanually.
1. Double-clicktheconditionalscriptintheScriptspanetoreopenit.
2. MakesurethattheselectorisaCSSclass(forexample,.male)oranHTMLelementwithacer-
tainCSSclass(forexample,p.male).See"SelectorsinOLConnect"onpage825forfurther
explanationonselectors.
3. ApplythesameCSSclasstoallelementsthatshouldbeshownorhiddenunderthecondition
thatyouhavesetintheconditionalscript.Clickeachelementandtypetheclass(withoutthepre-
cedingdot)intheClassfield.
Page 737