ViewHelper Documentation
v:condition.iterator.contains
Condition ViewHelper. Renders the then-child if Iterator/array haystack contains needle value.
Example:
{v:condition.iterator.contains(needle: 'foo', haystack: {0: 'foo'}, then: 'yes', else: 'no')}
Arguments
needle anySimpleType
Needle to search for in haystack
haystack anySimpleType
Haystack in which to look for needle
considerKeys boolean
Tell whether to consider keys in the search assuming haystack is an array.