Parameters: (String searchStr, String match, String valueIfMatch, String valueIfNoMatch);
Returns: String;
Function to return a value based on whether a string contains a given substring.
Conditions generated are intended for use on a ServiceNow target servers ONLY.
The first parameter is the value to be searched to see if it contains the match value
The second parameter is the substring to be matched
The third parameter is the value that will be returned if a match is found.
The fourth parameter is the value that will be returned if a match NOT is found.
Examples:
Example 1: IFCONTAINS('Hello World', 'World', 'TRUE', 'FALSE') = 'TRUE'
Example 2: IFCONTAINS('Hello World', 'Earth', 'TRUE', 'FALSE') = 'FALSE'
Comments
0 comments
Please sign in to leave a comment.