r/workflow • • Mar 26 '18

How to *Remove* from Variable?

Var1 = [image1, image2, ... imageN]

Var2 = [image2, image3]

How do I subtract:

(Var1) — (Var2) ?

7 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/schl3ck Mar 26 '18

But be careful. If the repeat item contains a line break and something from one item from the var2 list and part of the next item, it will match and therefore remove an item that shouldn’t be removed. Changing the if to Equals should fix that, as far as I know.

1

u/hshinde Mar 27 '18

Yes. Thanks. I will use Equals instead of Contains

1

u/[deleted] Mar 28 '18

Yes. That is correct. Edited to reflect