case
Description
Convert a string of text to lowercase, uppercase or capitalize.
Input / Parameter
type
The type of letter casing to apply to the text.
Text
-
Lowercase , Uppercase , Capitalize
Yes
text
The value to be converted.
Text
-
-
Yes
Output
Returns formatted text.
String/Text
Example
In this example, we will format a text using case function.
Steps
Drag a
button
component into the canvas and open theAction
tab. Select thepress
event of the button.Add
Log.write
function and add a subflow on its value, then putText.case
inside it and fill type param withLowercase
and the text param withtesTing
.Add
Log.write
function and add a subflow on its value, then putText.case
inside it and fill type param withUppercase
and the text param withtesTing
.Add
Log.write
function and add a subflow on its value, then putText.case
inside it and fill type param withCapitalize
and the text param withtesTing
.
Result
The console on preview will show us the formatted text value
testing
,TESTING
&TesTing
.
Links
Related Information
Last updated