2022.2

Table Of Contents
l
Text,forexample:@lastname@,or{sender}.Thetextdoesn'thavetohaveanyspecial
characters,butspecialcharactersdomakeiteasiertorecognizethetextforyourself.In
theTextScriptWizard,clickTextandtypethetexttofind.
Note: AscriptmadewiththeTextScriptWizardforablockofdataalreadyruns
fasterthanaseriesofindividualscripts,becauseitonlyhasoneselector.However,
searchingfortextcanbealengthyoperation,comparedtosearchingforanelement
withanID.Whenspeedmatters,selectoneofthetworemainingoptions:Selector
orSelector and Text.Seealso:"Testingscripts"onpage816and"Optimizing
scripts"onpage820.
l
AnHTML/CSS selector:
n
HTMLelements,suchasaparagraph.IntheTextScriptWizard,clickSelectorand
typetheHTMLtagwithouttheanglebrackets,forexample:p.
n
HTMLelementswithaspecificclass.IntheTextScriptWizard,clickSelectorand
typetheclassname,includingtheprecedingdot,forexample:p.greenforallpara-
graphswiththeclass'green'or.greenforallkindsofHTMLelementsthathavethe
class'green'.See"Stylingandformatting"onpage671foranexplanationabout
CSS(CascadingStyleSheets).
n
AnHTMLelementwithaspecificID.IntheScriptWizard,clickSelectorandtypethe
ID,includingthepreceding#,forexample:#intro.
Note: EachIDshouldbeunique.AnIDcanbeusedonceineachsection.
n
Etcetera.Seehttps://www.w3schools.com/cssref/css_selectors.aspformoreselect-
orsandcombinationsofselectors.
l
Aselector and text.ThisistextinsideanHTMLelement(orseveralHTMLelements)with
aspecificHTMLtag,classorID.IntheTextScriptWizard,clickSelector and textand
typetheselectorandthetextintherespectivefields.
4. ClickthedownwardpointingarrowinthefirstrowinthecolumnField.Selectadatafieldfromthe
listthatappears.
5. AddaPrefixand/oraSuffix.Theprefixandsuffixcancontaintextand/orHTMLtags.Ifafieldis
empty,theprefixandsuffixwillbeignored,whichmeansyoucanaddlinereturnsandstatictext,
suchas:
Page 730