Check if a string contains a specified substring
1. Component overview
Prerequisites: None
This component checks if a string contains a specified substring.
2. Inputs
For more information about the input parameters, see the component's help text in the application flow editor.
3. Outputs
For more information about the output parameters, see the component's help text in the application flow editor.
4. Component usage example
4.1. Configuration example
For
Target String, select a string variable from the drop-down list.Set
Target stringto "Alibaba Cloud".Keep the default values for the advanced options.
4.2. Example result
None
5. Example flow
Setup flow
Use the Set Variable Value component to set the value of a string variable.
Use the Check if a string contains a specified substring component to check if the string contains the substring.
Use the Record Log component to print the value returned by the Check if a string contains a specified substring component.
Execution result
After the flow runs, the result is printed in the log panel, as shown in the following figure.
