Has Substring

Click to copy

Checks if a string contains a given substring and returns its index.


Example: Has Substring(string: "lorem lorem", substring: ""re") = result: True, index: 2.

Flow Connections

  • [Input] In - starts the block's execution.
  • [Output] Out - activates when the block has finished its execution.

Data Connections

  • [Input] String (string/email/text/phone number) - string within which to find a substring.
  • [Input] Substring (string/email/text/phone number) - substring to be found.
  • [Output] Result (boolean) - True if the "String" data input contains at least one instance of the "Substring" data input, False otherwise.
  • [Output] Index (integer) - starting position of the 1st instance of "Substring" data input in "String" data input (starting at 0).