# Right()

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

```
Right( string=string, count=number );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| string | string | Yes | A string or a variable that contains one. |  |
| count | number | Yes | A non-zero integer. A positive value of n will return n characters from the end of the string. A negative value of n will return (length - n) characters from the end of the string. |  |

# Examples

```cfml

//simple Function
writeDump(right("I love lucee",5));//lucee

//Member function
str="Save trees, save life on the earth.";
writeDump(str.right(23));//save life on the earth.

```







# Categories

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

# See Also

[Left()](left.md), [string.right()](../objects/string/right.md)