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β
| Type | Parameter | Description |
|---|---|---|
| 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 ""