Check if a string starts with a specified prefix

Updated at:

1. Component introduction

Note

Prerequisites: None

Use this component to check if a string starts with a specified prefix.

2. Inputs

Note

For more information about each input, see the help text in the component panel of the application flow editor.

3. Outputs

Note

For more information about each output, see the help text in the component panel of the application flow editor.

4. Component usage example

4.1. Component configuration example

  1. For Target String, select the target string variable from the drop-down list.

  2. For Target Prefix, enter "Welcome".

  3. Keep the default values for the advanced options.

4.2. Example execution result

None

5. Sample flow

Build the flow

  1. Use the Set Variable Value component to set the value of a string variable.

  2. Use the Check if String Starts with Prefix component to check if the target string starts with the specified prefix.

  3. Use the Record Log component to print the return value of the Check if String Starts with Prefix component.

image

Execution result

After the flow runs successfully, the check result is printed to the log panel, as shown in the following figure.