If list is empty switch to another list


As the title says, i would like to use another list if the current list is empty. I tried list is empty boolean true/false, but now i’m stuck. Thanks for your help. :slight_smile:


Can you post what you have so we can help you build?


Is this what you’re looking for?


Sorry for the late respond :smiley: Here is a picture of what i actually want. So if the list is empty get the items of the other list. list empty


Here is the problem in a different view:

image uploader


Empty Lists and nulls tend to cause problems with certain functions, including If.
Use python instead.

test = IN[0]
true = IN[1]
false = IN[2]
empty = []

if test == empty:
	out = true
	out = false

OUT = out

Python Nodes Basics

Works perfectly! Thank you :slight_smile:


If I had a dollar for every time this meant I had to reformat my work or reevaluate a workflow… there are ways around it but managing nulls and empties is certainly easier in Python. The List.ReplaceEmptyLists node in the clockwork package works for this if you want to avoid Python.