2022.2

Table Of Contents
1. Renamethescriptsothatitreflectswhatthescriptdoes.
Scriptscanonlyhavethesamenamewhentheyarenotinthesamefolder.(See
"Managingscripts"onpage374.)
2. TypeaSelector.Theselectorselectsoneormorepiecesoftextorelementsfromthetemplate,
sothattheconditionalcontentscriptcanhideorshowthosepieces.
AnID(forexample:#conditional-script)isbestifyouwanttoshoworhideoneelementonly.
Useaclassselector(forexample:.conditional)ifthescriptshouldshoworhidemorethanone
element.See"SelectorsinOLConnect"onpage385forfurtherexplanationonselectors.
WhenyoustarttheConditionalScriptWizardbyright-clickinganelement,theSelectorfieldis
pre-populatedwiththeelement'sIDandclass(orclasses).Iftheelementdidn'thaveanIDor
class,itgetsanewID(orclass,incasemultipleelementswereselected)thatisgeneratedauto-
matically.
Ifyou'dwanttochangetheselectorlater,youcandothatafterreopeningthescript(double-click
thenameofthescriptintheScriptspane).
3. SettheAction:usethedrop-downtoselectwhethertoShoworHidetheelementwhenthecon-
ditionbelowistrue.Whentheconditionevaluatestofalse,theoppositeactionisperformed.
Oncethesesettingshavebeenmade,theconditioncanbebuild.
The Addbuttonaddsarulethatevaluatesadata fieldtoagroup.
Toaddeitheragroup,orarulethatevaluatesaruntime parameter,clickthedownwardpointing
arrownexttothisbuttonandselectGrouporParameter Rule.
Creatingaparameterruleisonlypossibleifthetemplatecontainsruntimeparameters;seeRuntime
parameters.
Therule(s)applyataGrouplevel.Theremaybeoneruleormanyrulesatthesamelevel,andthere
maybegroupswithingroups,providingtheabilitytocreatequitecomplexnestedlogicalstructures.
Group
Agroupconsistsofoneormoreruleswithalogicoperator.Fourlogicchoicesareavailableatthe
Grouplevel.Theseare:
l
All of the following.
Thisequatestothelogicaloperator(...AND...).
Ifalloftheassociatedcriteriaaremet,thenthisgroupresolvestoTRUE.
l
Any of the following.
Thisequatestothelogicaloperator(...OR...).
Page 319