Substring Function

Simran Mehndiratta
Simran Mehndiratta
  • Updated

Function Name:

Substring

Purpose:

The Substring function returns a portion of the input text using the configured index parameters. The string index starts from 0. For example, the 'S' character in "Syncari" is index 0. The substring function is useful when you need to truncate a string and limit the string to a certain number of characters. 

Configuration:

1. Enter a Display label for the node. This will be helpful with identifying the node when viewing your Entity Pipeline.

2. Enter a Description that will explain the criteria configured.

3. Start Index is the position of the first character of the substring. 

4. End Index is the position of the last character of the substring. 

Example:

- If the input is "Syncari", a Start Index = 3 and End Index = 4 will have the function return the substring "car".

- If the following string needs to be truncated to the first 10 characters,

"Syncari is the best platform!"
set the Start Index = 0 and End Index = 9, and the output will be, 
"Syncari is"

Share this

Was this article helpful?

0 out of 0 found this helpful