I have created a workflow that overrides the color of certain tags based on a bunch of filters and added a Data shapes section so the user is able to choose wether they want to “add” or remove the color override.
We need to be able to set a color override, but later in the project remove all the overrides.
I have done all of this but i am now running in to the final problem.
If i give the element.type node a wrong input on purpose to stop that part of the workflow from running, i get an error message, obviously…
I would like to be able to remove the error message by another node or remove it by giving it another faux input that doesnt result in an error message…
@MVE1112 Supplying an Empty List works most of the time
On a second note, I’m not sure if it’s a good idea to use an if node when you have a mismatch in length of lists (True input has 18 elements vs. False only has “fout”).
I would suggest using something like this instead:
Thanks for your detailed reply!
I used your codeblock as you suggested and this resulted in an empty list input as desired.
I did notice something weird when just entering an empty list in the if node…
When i enter a empty list in as option for the If nodes, it picks the empty list as input, regardless of wether the test is true or false. Just out of curiosity, do you happen to know why this occurs?
The test is True but the output is based on a False test:
I’m aware of that issue and that’s the reason I suggested the alternative using a GetItemAtIndex approach.
I don’t remember why it does that on top of my head but it has been discussed on forum quite a few times. So dig into it if you are curious!