Right

Block Group: String Operations
Icon:Right block icon

The Right block returns the specified number of rightmost characters from a string value.

For information on using dataflow blocks, see Dataflow.


Input/Output Properties

The following properties of the Right block can take input and give output.

  • input (string)
  • length (number)

input specifies the text string that contains the characters to extract.

length specifies how many characters to extract.


Output Property

The following property of the Right block can give output but cannot take input.

  • output (string)

output returns the extracted characters.


Special Cases

The following are special cases for the Right block:

  • The length property must be greater than or equal to zero.
  • If length is null, it is assumed to be zero.
  • If length is greater than the length of text, output returns the entire input.

Example

The following image demonstrates a Right block. In this example, the Right block extracts the rightmost 5 characters in "Final Price" and returns "Price."

Right block example