User Tools

Site Tools


syntax:functions:setcontainsany

SetContainsAny(list1, list2[, separator])

Category: Text function


Description

This function returns TRUE if list1 contains at least one value from list2, otherwise it returns FALSE.


Arguments

ArgumentTypeDescription
list1List (Text)A delimited set of string values.
list2List (Text)A delimited set of string values.
separatorTextThe delimiter to use in the concatenation of the output string. If not defined, the default is comma.

Return value type: Boolean (TRUE/FALSE)


Remarks

All leading and trailing spaces are removed from around the list values.


Examples

setcontainsany("A, B", "B,C") //returns TRUE

setcontainsany("A;B", "C ;D", ";") //returns FALSE (neither "C" nor "D" are in list1)


See also

syntax/functions/setcontainsany.txt · Last modified: 2024/04/12 01:59 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki