ContainsAnyChar (String)

Name

ContainsAnyChar

Syntax

ContainsAnyChar (String charsTolookFor, String lookIn)

Purpose

To determine whether any character in charsTolookFor string exists in lookIn string.

Description

Returns true if any character in charsToLookFor string exists in the LookIn string. Otherwise returns false. Note: This function is NOT case sensitive.

Return Type

Boolean

Parameters

CharsTolookFor [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,

CharsTolookFor = # @ab

lookIn = 1234 @# ABC

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 CharsTolookFor string is present within the lookIn string.

Last updated

© Copyright 2023, Astera Software