For me, the below logic, single value contains in an array is working perfectly.
value = "a"
list1 = ["a","b","c","d"]
value =~ list1
But if both are list, as given below, it is not working.
list1 = ["a","b","c","d"]
list2 = ["b","c"]
How will I check list2 =~ list1