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
buttoncomponent into the canvas and open theActiontab. Select thepressevent of the button.Add
Log.writefunction and add a subflow on its value, then putText.caseinside it and fill type param withLowercaseand the text param withtesTing.
Add
Log.writefunction and add a subflow on its value, then putText.caseinside it and fill type param withUppercaseand the text param withtesTing.
Add
Log.writefunction and add a subflow on its value, then putText.caseinside it and fill type param withCapitalizeand the text param withtesTing.
Result
The console on preview will show us the formatted text value
testing,TESTING&TesTing.
Links
Related Information
Last updated