This Flow Script tutorial explains how to use the Mid function with syntax and examples.


The Mid function returns the substring starting at start and continuing count characters. The start parameter is 0-based: the first character has index 0, the second 1, etc.


‌The syntax for the Mid function is:

Mid(input, start, count)


input - the string from which the characters are returned.

start - the position in input from where count starts.

count - the number of characters returned. Count cannot be negative.


‌The Mid function returns a string.


Let's look at some Mid function examples and explore how to use the Mid function.‌

Mid("hello world", 0, 2)
Result: he

Mid("hello world", 1, 2)
Result: el

Mid("hello world", 3, 5)
Result: lo wo 

Last updated