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 valueBoth 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.
Discussion posts and replies are publicly visible
Hi,
can you please confirm that the array value is not in a single text?
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.
single text means - "08; 13"orarray means {"08","13"}please confirm this, and share your code.
since each value is getting appended to the list, I don't think its of single text since the value 08 will come in the 1st iteration and 13 will coming only in the 2nd iteration and so on. The target value is of multiple type. Hope this gives more ideaThe same we are doing for some other variables in the same way. Its working fine for other variables.
please try to wrap the array text with the Uniform String function and if it's not resolved please share your code with PVs
Works for me
You must be doing something different.
We used split function and touniform string to solve the issue. Thanks for the input