How do you find the position of an array member in a mvt:foreach loop?
Is l.pos available in a mvt:foreach loop? I tried a counter variable but can't get it to work logically without a conditional break.
I've seen this asked before, is there a way to break out from a foreach loop without exiting the script?
Does miva_array_find() and indexof() only work on stringified arrays?
Given array structure {[product_id, displ_order]}: { [436,10], [318,21], [791,36] [4,48] } how would I find the position on product_id 318?
Is l.pos available in a mvt:foreach loop? I tried a counter variable but can't get it to work logically without a conditional break.
I've seen this asked before, is there a way to break out from a foreach loop without exiting the script?
Does miva_array_find() and indexof() only work on stringified arrays?
Given array structure {[product_id, displ_order]}: { [436,10], [318,21], [791,36] [4,48] } how would I find the position on product_id 318?
Comment