ScriptSpot

MCG

Filter Array by another Boolean array:

By Alaa alnahlawi · 2015-08-31

Version
1.0
Version requirement
2016
Votes
1
Description

If you have two arrays with the same amount of items and one of them contains boolean values, you can filter the second array using those boolean values by using this compound.

Regards

Alaa Al Nahlawi

Attachments
Comments (2)

hotknife · 2016-01-28

Hey Alaa - cheers for this, it's been bugging me how to do it.

Just one thing to watch is that this Compound throws an error if all Booleans are False. This I believe is an MCG thing with parallel mapping - change the Parallel Map to a Map and it doesn't wobble. Therefore you can also change the Combine to ParallelCombine which will help.

HK.

Alaa alnahlawi · 2016-01-31

Thanx for the advice, I will change it...