© Copyright 2023, Astera Software
Name | Contains |
Syntax | Contains (String lookFor, String lookIn) |
Purpose | To determine whether lookFor string exists in lookIn string. |
Description | Returns true if the lookFor string exists within the lookIn string. Otherwise returns false. Note: This function is case sensitive. |
Return Type | Boolean |
Parameters | lookFor [System.String] – String to search for lookIn [System.String] – String to search in |
Example
In this example, we are passing the required parameters to the function transformation object using a Variables object.
Where,
lookFor = GH
lookIn = ABCDEFGH
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned True, indicating that the the lookFor string is present within the lookIn string.