Merge pull request #34 from set-soft/fix_ifelifelse_1

[Fixed][IfElifElse] Lazy evaluation of elif_key

Should also make the enhanced tests of #35 happy
This commit is contained in:
StableLlama
2025-11-28 11:52:15 +01:00
committed by GitHub
@@ -101,6 +101,10 @@ class IfElifElse(ComfyNodeABC):
if elif_key not in kwargs:
break
if kwargs.get(elif_key) is None:
needed.append(elif_key)
return needed
# If this elif condition is true and its value is None, add it to needed
if kwargs.get(elif_key, False) and kwargs.get(then_key) is None:
needed.append(then_key)