# right

## Description

Extract a specified number of characters from the right side of a text.

## Input / Parameter

| Name             | Description                                                                                  | Input Type  | Default | Options | Required |
| ---------------- | -------------------------------------------------------------------------------------------- | ----------- | ------- | ------- | -------- |
| string           | The value where the extraction would happen.                                                 | String/Text | -       | -       | Yes      |
| length           | The number of characters to extract.                                                         | Number      | 0       | -       | Yes      |
| byLanguageFormat | To follow the language format. Usually this matters for languages that doesn't use alphabet. | Boolean     | false   | -       | No       |

## Output

| Description                 | Output Type |
| --------------------------- | ----------- |
| Returns the extracted text. | String/Text |

## Callback

N/A

## Video

Coming soon.

## Example

The user wants to display a specified number of characters from the right hand side of a string..<br>

### Step

1. Call the function `console`. Call the function `right` inside the `value` parameter of the `console` function.\
   string: 123456789\
   length : 6<br>

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-77ff000337b37171083e0397b8acea89a924719a%2Fright-step-1.png?alt=media)

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-5f81ac057614c4c9b1dac33ae1414a9ba03999f7%2Fright-step-2.png?alt=media)

### Result

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b8bbe3e8111e96e047781b8359aa611cac8f19e9%2Fright-result-1.png?alt=media)

## Links
