Package

ViewHelpers

ViewHelper Documentation

v:iterator.indexOf

Searches $haystack for index of $needle, returns -1 if $needle is not in $haystack.

Arguments

then anySimpleType

Value to be returned if the condition if met.

else anySimpleType

Value to be returned if the condition if not met.

condition boolean

Condition expression conforming to Fluid boolean rules

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.

ViewHelper Resources

Schema Resources