theUpsider / ComfyUI-Logic

Logic nodes to perform conditional renders based on an input or comparision
125 stars 17 forks source link

If Node For Conditional Upscale? #4

Open photogsy opened 8 months ago

photogsy commented 8 months ago

Describe the bug Trying to build a workflow with a boolean toggle that I can use to switch upscale on or off.

I tried to connect the output from my VAE decode to the IF Node but it seems backwards - I want to connect the image to the ? on the IF, then connect the IF_TRUE to the upscaler and IF_FALSE straight to an ImagePreview node.

I'm sure I'm missing something but it seems to be around the wrong way?

theUpsider commented 1 week ago

It works like this: If ANY is true, then the value of IF_TRUE is being passed down, otherwise IF_FALSE. Does this clarify the question?