Created
September 14, 2017 17:32
-
-
Save steveosoule/005cf01defb878336a25654739a2a083 to your computer and use it in GitHub Desktop.
Miva - Get Difference of Two Arrays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mvt:assign name="l.settings:lists:small" value="miva_array_deserialize('Apples,Bananas,Carrots')" /> | |
<mvt:assign name="l.settings:lists:big" value="miva_array_deserialize('Apples,Bananas,Carrots,Lemons,Limes,Oranges')" /> | |
<mvt:assign name="l.result" value="miva_array_filter( l.settings:lists:big, 0, l.big_item, 'NOT miva_array_find( l.big_item, l.settings:lists:small, 0 )', l.settings:lists:difference )" /> | |
<mvt:eval expr="glosub(miva_array_serialize(l.settings:lists), ',', '<br>')" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment