ScriptSpot home

MCG

Filter Array by another Boolean array:

By Alaa Al-Nahlawi · 2015-08-31

Community reviewsNo reviews yet.
Version
1.0
Version requirement
2016
Legacy votes
1
Downloads
Report a problem
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

More by Alaa Al-Nahlawi

View all contributions
Comments (2)
hotknife

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.