LeftOf (String)
Name | LeftOf |
Syntax | LeftOf (String str, String lookFor) |
Purpose | To search str for lookFor and, if found, to return all characters before it. |
Description | If the string is found, returns all the characters to the left of the specified string. Otherwise, returns an empty string. |
Return Type | String |
Parameters | str [System.String] – String that will be searched and whose part will be returned lookFor [System.String] isCaseSensitive [System.Boolean] |
Example
In this example, we are passing the required parameters to the function transformation object using a Variables object.
Where,
str = ABCDEFG
lookFor = e
isCaseSensitive = False
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned all the characters to the left of the specified string value.
Last updated