# Mid

### &#xD;**Description**‌

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.

### **Syntax**

‌The syntax for the Mid function is:

`Mid(input, start, count)`

#### ‌**Parameters**

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.&#x20;

### **Returns**

‌The Mid function returns a string.&#x20;

### **Example**‌

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 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.novacuraflow.com/development/flowscript/functions/text-functions/mid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
