Find Substring
This function block searches a shorter text inside a longer text and returns a boolean result indicating whether the shorter text exists in the longer one. It is ideal for simple text checks, triggers and conditional logic in your scenarios.
π₯ Inputs
Main Text The text to be searched.
Sub Text The substring to look for inside the main text.
π€ Outputs
Result Boolean value: TRUE when the substring is found in the main text, otherwise FALSE.
πΉοΈ Controls
No Controls This block has no interactive widgets. It operates only using its input sockets.
π― Features
Fast boolean check to verify presence of a substring in a text.
Safe behavior when inputs are empty: returns FALSE if required text is missing.
Minimal configuration β just provide the texts and read the boolean output.
π Usage Instructions
Provide the longer text into the
Main Textinput socket. You can use aString Inputblock or any other block that outputs text.Provide the substring to search into the
Sub Textinput socket.Read the boolean value from the
Resultoutput socket to decide downstream actions (for example, trigger logging or alerts).
π Evaluation
When evaluated, this block checks whether the Sub Text exists within the Main Text and outputs the check result via the Result socket.
π‘ Tips and Tricks
To avoid case-sensitivity issues, combine with
String Operationsto convert both texts to a common case before checking.Use
String Mergeto build dynamic messages (for example combine variable parts into a singleMain Text).Use
Is NoneorReplace Nonebefore this block to ensure empty inputs are handled predictably.Feed the boolean
Resultinto aLogic Inputor other logic blocks (likeAnd,Or) to drive conditional flows.Use
Debug InputorData to JSONto log matches during development and troubleshooting.To store or export match events, combine the boolean output with
CSV ExportorImage Loggerworkflows depending on your data needs.
π οΈ Troubleshooting
No matches but expected: check for case differences or leading/trailing spaces. Normalize text with
String Operations(e.g., lowercasing, trimming) before feeding this block.Always FALSE: ensure both
Main TextandSub Textsockets are receiving valid text. UseDebug Inputto inspect upstream values.Unexpected TRUE matches: verify the exact substring provided; small typos or partial words may still produce a match depending on the content.
Last updated
Was this helpful?