Slice Function
Last updated
Last updated
Powered By Automations
The slice function is used to extract a substring from a string.
The syntax of the slice function is slice(index;start;end), where start is the index of the first character to be included in the substring, and end is the index of the first character to be excluded from the substring.
If the end parameter is not specified, the substring will include all characters from the start index to the end of the string.
In the example shown in the video, the slice function is used to extract the last four digits of an order ID.
The slice function is a powerful tool that can be used to manipulate strings in various ways.
Watch the video to understand how to use slice function in automation builder: