Ask AI
Skip to main content

Capitalize

Function: Capitalize

This action helps you standardize text by converting the first letter of each word to uppercase. For example, "hello world" becomes "Hello World". It's perfect for formatting names, titles, or any text that needs a consistent, professional look.

Input

  • Text (STRING, Required): This is the specific piece of text you want to modify. You can type it directly or use a variable that holds the text.

Output

  • Result (STRING): This is the name of the variable where the capitalized text will be stored. By default, it's named "RESULT", but you can choose any name you like. After the action runs, this variable will contain your original text with the first letter of each word capitalized.

Execution Flow

Real-Life Examples

Here are some ways you can use the "Capitalize" action in your applications:

Example 1: Formatting a User's Name

Imagine you have a form where users enter their full name, and you want to ensure it's always displayed with proper capitalization.

  • Inputs:
    • Text: john doe (This could come from a form field variable)
    • Result: FormattedName
  • Result: A new variable named FormattedName is created, containing the value John Doe.

Example 2: Standardizing Product Titles

When importing product data, titles might not always be consistently capitalized. You can use this action to clean them up.

  • Inputs:
    • Text: eco-friendly water bottle (This could be a product title from a database)
    • Result: ProductTitle
  • Result: A new variable named ProductTitle is created, containing the value Eco-Friendly Water Bottle.

Example 3: Capitalizing a Sentence for Display

You might want to capitalize the first letter of each word in a short sentence or phrase before displaying it in a report or on a dashboard.

  • Inputs:
    • Text: this is a test sentence.
    • Result: DisplaySentence
  • Result: A new variable named DisplaySentence is created, containing the value This Is A Test Sentence..