Last updated 4 months ago
Was this helpful?
The Contains keyword can be used on either Texts, Concept Sets or Lists.
Contains
It checks if a text, a concept set or a list contains a value (of corresponding type).
This function is SQL compatible. For more information about SQL compatibility, see our .
Returns a Yes/No value that indicates if the searched item is indeed part of the source being searched.
Text functions are not case-sensitive and ignore diacritics (accents).
text
contains
"With tangerine trees and marmalade skies" Contains "marmalade" => Yes
"With tangerine trees and marmalade skies" Contains "marmalade"
concept_set
concept_b
{ 'PowerUser', 'Administrator' } Contains 'Administrator' => Yes
{ 'PowerUser', 'Administrator' } Contains 'Administrator'
{ 'User', 'PowerUser', 'Admin' } contains { 'User', 'Admin' } => Yes
'User', 'PowerUser', 'Admin' } contains { 'User', 'Admin' }
{ 'PowerUser', 'Admin' } contains { 'User', 'PowerUser' } => No (the second set is not contained entirely within the first set, although there is overlap - which is a different keyword/function)
'PowerUser', 'Admin' } contains { 'User', 'PowerUser' }
list
item
list(1, 2, 3) contains 2 => Yes
list(1, 2, 3) contains 2
list("A", "B", "C") contains "B" => Yes
list("A", "B", "C") contains "B"