Right (String str, integer noOfChars) - String¶
Name | Right |
---|---|
Applicable To (DataType) | String |
Purpose | To get the desired number of characters from the rightmost part of the string. |
Description | Gets the rightmost noOfChars from the specified string. |
Return Type | String |
Syntax | str [System.String] – string whose part will be returned. |
noOfChars [System.Int64] – maximum number of characters to return. |
Example¶
In this example, we are passing the required parameter by the function transformation through a Variables object.
Where,
str = ABCDEF
noOfChars = 3
Right-click on the function transformation object and select Preview Output. You can see that 3 characters from the right of the specified string have been returned.