# string.left()

Returns a substring from beginning of the input string, with a length specified by the count argument.

```
string.left( count=number )
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| count | number | Yes | A non-zero integer. A positive value of n will return n characters from the beginning of the string. A negative value of n will return (length - n) characters from the beginning of the string. |  |

# Examples

```1
	str="Effort Never fail";
	writeOutput(str.left(6));
```

# Categories

[Strings](../../../categories/string.md)

# See Also

[Left()](../../functions/left.md), [String](../string.md)