Skip to main content
Version: 7.9

right

This function is used by Ignition's Expression language.

Description​

Returns count number of characters starting from the right side of string, where count and string are the arguments to the function.

Syntax​

right(string, charCount)

  • Parameters

    • string string - The starting string.

    • string charCount - The number of characters to return.

  • Results

    • string - A string of the number of characters specified in the charCount from the specified string.

Examples​

Code Snippet
right("hello", 2) //returns "lo"
Code Snippet
right("filename.pdf", 3) //returns "pdf"
Code Snippet
right("hello", 0) //returns ""