Constraint : ListA contains ListB: Any

How about a function that returns true if any elements in list A are in list B

In JS
Function Any (A-list, B-list) {
var i,j ;
var x = false;
For (i = 0; i < A-list.len, i++) {
For (j = 0; j < B-list.len, j++) {
IF A-list[i] == B-list[j] { x = true, return x }
}
}
return x
}

I don’t think there is any easy way to do this at the moment.

1 Like

I agree. We have “all” functionality with ‘contains list’ operator, why not “any”?

How can I achieve that in the conditional setting?