The instructions describe how to set up a script to convert a user name to a string with a capital letter. The example uses a simple script: the user enters a name, the system processes it and returns it with a greeting.
Create three blocks in sequence: Question, Expression, Information.
Enter the following in the Message field of the Question block: What is your name?
Enter the following in the Message field of the Information block: {name}, it's very nice to meet you.
Connect the blocks with an arrow:
4.1. Draw an arrow from the Question block to the Expression block.
4.2. Draw an arrow from the Expression block to the Information block.
Configure the arrow properties:
5.1. Arrow type: Default.
5.2. Save answer: enter the variable name name.
Configure the Expression block:
6.1. Click the Open Editor button. An input window will open.
6.2. Enter $name = str.ucfirst($name), where:
$name is the variable created in the arrow.str.ucfirst() is a function that converts the first character of a string to uppercase.6.3. Click Save.
7. Add error handling BPL.
8. Save the script.