24/7 Support: 800.608.6482

Get Started

Developer Docs

miva_array_filter_ref

MivaScript Builtin Function, Miva Merchant 9+

Tag / Description

miva_array_filter_ref( array var, offset, element var, filter_expression, output var )

<mvt:assign name="g.return_value" value="miva_array_filter_ref( array var, offset, element var, filter_expression, output var )" />

Iterate through an array starting at a given offset, execute a filter expression against each element, and create a new member with references to the members in the output array. See also miva_array_filter.

Parameters

  • array var

    Source array of structures.

  • offset

    index in the array to start filtering from.

  • element var

    Name of a variable to reference in the filter expression.

  • filter_expression

    Text of an expression to execute based on the individual array element.

  • output var

    Output array of all structures that tested true in the filter expression.

Return Values

Examples

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2019 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.