iterator.previous ViewHelper <vhs:iterator.previous> 

Returns previous element in array $haystack from position of $needle.

Arguments 

then 

DataType
mixed
Required
false
Description
Value to be returned if the condition if met.

else 

DataType
mixed
Required
false
Description
Value to be returned if the condition if not met.

needle 

DataType
mixed
Required
true
Description
Needle to search for in haystack

haystack 

DataType
mixed
Required
true
Description
Haystack in which to look for needle

considerKeys 

DataType
boolean
Required
false
Description
Tell whether to consider keys in the search assuming haystack is an array.