Skip to main content
Version: 7.9


This function is used by Ignition's Expression language.


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


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.


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