Change Text Case
Verb: changeTextCase
Changes letter case of one or more input texts to Upper, Lower, Title or Sentence case.
Syntax
changeTextCase --text(String) --type(TextCaseType) (String)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--text | Text | Required | Text | Text that should have its letter case changed |
--type | Alter to | Required | TextCaseType | Type of case change, available options are:
|
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | Text | Text | Text with the new letter case. |
Example
Example 1: Changes the text case of "Sample Text" to Upper.
defVar --name outputText --type String
defVar --name inputText --type String --value "Sample Text"
// Change text case to Uppercase.
changeTextCase --text "${inputText}" --type "Upper" outputText=value
logMessage --message "${outputText}" --type "Info"
// This example produces the following result:
// "SAMPLE TEXT"
Example 2: Changes the text case of "SAMPLE TEXT" to Title.
``` {: codeblock}
defVar --name inputText --type String --value "SAMPLE TEXT" defVar --name outputText --type String // Change the text formatting to Title. changeTextCase --text "${inputText}" --type "Title" outputText=value logMessage --message "${outputText}" --type "Info" // This example produces the following result: // "Sample Text"
## See Also
<li><a href="../../base/text/escapetextforregex.html">Add Escape Characters to Regular Expression</a></li>
<li><a href="../../base/text/escapedata.html">Add Escape Characters to Text</a></li>
<li><a href="../../base/text/hashcalculate.html">Calculate Hash</a></li>
<li><a href="../../base/text/hashtest.html">Check File</a></li>
<li><a href="../../base/text/concattexts.html">Concatenate Texts</a></li>
<li><a href="../../base/text/htmltotext.html">Convert HTML to Text</a></li>
<li><a href="../../base/text/counttextoccurrences.html">Count Occurrences in Text</a></li>
<li><a href="../../base/text/getstringlength.html">Count Text Characters</a></li>
<li><a href="../../base/text/createrandomtext.html">Create Random Text</a></li>
<li><a href="../../base/text/getregextable.html">Create Table By Regular Expression</a></li>
<li><a href="../../base/text/textnullorempty.html">Empty or Null Text Variable</a></li>
<li><a href="../../base/text/ismatch.html">Find by Regular Expression</a></li>
<li><a href="../../base/text/parsetext.html">Find Occurrences in Text</a></li>
<li><a href="../../base/text/formattext.html">Format Text</a></li>
<li><a href="../../base/text/getsubstring.html">Get Subtext</a></li>
<li><a href="../../base/text/getregex.html">Get Text from Regular Expression</a></li>
<li><a href="../../base/text/htmltomarkdown.html">HTML to Markdown</a></li>
<li><a href="../../base/text/appendlinetotext.html">Insert New Line to Text</a></li>
<li><a href="../../base/text/jointext.html">Join Text</a></li>
<li><a href="../../base/text/padtext.html">Pad Text</a></li>
<li><a href="../../base/text/parseuri.html">Parse URI</a></li>
<li><a href="../../base/text/removediacritics.html">Remove Diacritics</a></li>
<li><a href="../../base/text/unescapedata.html">Remove Escape Characters</a></li>
<li><a href="../../base/text/stuff.html">Replace Part of Text</a></li>
<li><a href="../../base/text/replacetext.html">Replace Text</a></li>
<li><a href="../../base/text/splitstring.html">Split Text</a></li>
<li><a href="../../base/text/trimstring.html">Trim Text Blanks</a></li>