Skip to main content
sarathkumr268295
February 26, 2024
Question

contains function not giving desired results

  • February 26, 2024
  • 7 replies
  • 1 view

We are trying to compare to one intake value with data that is coming from another system. Both these values are present in pv and we are using contains function inside a script task to check the same. But even though the value is present in array, its giving false. 

Array value

Single value


Both are of same data types but still giving false. contains(arrayValue, singleValue) is the function being used inside a script task. Let us know if we are doing something wrong here.

7 replies

February 26, 2024

Hi,

can you please confirm that the array value is not in a single text?

sarathkumr268295
February 26, 2024

What do you mean by single text?


The array value is being generated using looping and we are using appended to list to store the value in pv. That pv is being passed to parent process model where we are doing this comparison.

amaans4178
February 26, 2024

single text means - "08; 13"
or
array means {"08","13"}

please confirm this, and share your code.

stefanhelzle0001
February 26, 2024

Works for me

You must be doing something different.