Find Substring

This function block is designed to search for a specified substring within a main string and return the result as a boolean value. It is useful for string manipulation and data processing tasks.

πŸ“₯ Inputs

Main Text The primary text in which the search will be conducted.

Sub Text The substring that you want to search for within the main text.

πŸ“€ Outputs

Result A boolean output indicating whether the substring was found in the main text (True) or not (False).

πŸ•ΉοΈ Controls

There are no additional controls in this function block as the operation is straightforward and purely focused on string evaluation.

🎨 Features

Simple String Search The block performs a direct search for the substring and gives a clear true/false outcome.

Flexible Input Accepts any string data types for both main and substring inputs.

πŸ“ Usage Instructions

  1. Input Main Text: Connect a source that provides the main text to the Main Text input.

  2. Input Sub Text: Connect a source that provides the substring to the Sub Text input.

  3. Evaluate: Execute the block to see if the substring exists within the main text. The result will automatically be updated.

πŸ“Š Evaluation

When the block is evaluated, it checks for the presence of the specified substring within the main text and outputs a boolean indicating the result of the search.

πŸ’‘ Tips and Tricks

Checking Case Sensitivity

The search is case-sensitive. To perform a case-insensitive search, consider converting both strings to lower (or upper) case using the String Operations function block before input.

Validating String Inputs

To avoid errors, ensure that both the main text and substring inputs are properly initialized. Use the Is None function block to check if any input is empty.

πŸ› οΈ Troubleshooting

No Result

If you receive a result of False and you're sure the substring exists, check for potential white space or special characters in the strings.

Make sure there are no leading or trailing spaces in your input strings.

Last updated