--- title: "Examples The following example returns a purely red color:" slug: "right" updated: 2024-05-04T19:43:04Z published: 2024-05-04T19:43:04Z canonical: "help.mail-and-deploy.com/right" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mail-and-deploy.com/llms.txt > Use this file to discover all available pages before exploring further. # Right ### General The *Right* function can be used to extract right characters from a [String](/release34/docs/string). ### Syntax The syntax of the *Right* function is: Right Function Syntax Right(, ) ### Examples The following [Expression](/release34/docs/introduction-to-mail-and-deploy-expressions) returns a [String](/release34/docs/string) that contains the 4 right characters of the value of variable vTest of a [Datasource](/release34/docs/introduction-to-datasources) named *Consumer Sales*: Right Function Example Right([Datasource].[Consumer Sales].[Variable].[vTest], 4)