Nodes/ComfyUI_LC123_nodes/LC Any Empty Float
ComfyUI Node

LC Any Empty Float

A dead-branch check that emits a number you choose

By lonecatone23·Created about a month ago·Updated about 20 hours ago· 12
LC Any Empty Float
  • any_01
  • any_02
  • any_03
  • any_04
  • any_05
  • any_06
  • any_07
  • any_08
  • any_09
  • any_10
  • any_11
  • any_12
  • any_13
  • any_14
  • any_15
  • any_16
  • any_17
  • any_18
  • any_19
  • any_20
  • float
empty0.00
not_empty1.00

The float version of the LC123 "Any Empty" detector does exactly what its boolean sibling does - tests a bunch of upstream sockets for emptiness - except instead of handing back a true/false it returns the number you decide on. Default behavior: 0.0 when any plugged source is empty, muted, or bypassed, and 1.0 when everything's alive. Which, read differently, makes this node a tiny two-state switch that emits float constants.

Why would you want that over the boolean? Because a lot of downstream knobs want a float, not a truth value. An overlay's opacity. A blend or strength amount. A denoise value. A multiplier going into a math expression. With LC Any Empty Float you wire your optional branches into the test side and feed the result straight into one of those float inputs - "if the reference image is missing, drop this overlay's opacity to zero" becomes a wire instead of a hand-tuned conditional branch.

Mechanically it's the same core as LC Any Empty Bool: up to 20 autogrow sockets (any_01any_20), all type *, so any data type plugs in. Only plugged sockets are tested; unplugged ones are ignored. "Empty" covers None, blank strings, empty tensors/lists/dicts, and - via a peek at the workflow graph - any source node that's muted or bypassed. The three siblings (Bool, Int, Float) share this exact logic; they only differ in what they emit.

The two inputs that matter are the ones that look like outputs: empty (default 0.00) is the value returned when any plugged source is dead, and not_empty (default 1.00) is returned when every plugged source has a live value. That's the part that trips people up - these aren't readouts, they're the constants you set. Want -1 when the branch is empty and 0.5 when it's live? Type those in. The node rounds its answer to 2 decimal places. Range is generous (±1e9, step 0.01), so you can emit strengths, opacities, or anything in between. The single output is float.

Two traps to know about, same as the siblings. If nothing is plugged in at all, the node returns the empty value - safest reading, but only what you want if you remembered to actually wire something up. And a bypassed source counts as empty here too, because LC123's own Bypasser/Mute set the workflow modes this node treats as dead. If you flip an upstream branch into bypass and suddenly your opacity zeroes out, that's why.

Install is shared across the whole LC123 pack: ComfyUI Manager → search "LC123" (repo ComfyUI_LC123_nodes), or git clone https://github.com/lonecatone23/ComfyUI_LC123_nodes into ComfyUI/custom_nodes, then restart. No pip extras, no model downloads. Watch the nested-folder warning if you unzip a release inside an existing clone, and on hosted ComfyUI platforms remember the pack usually has to be pre-installed by the host - a missing-node error on a shared workflow isn't something you can fix from the canvas.

CategoryLC123/utils

Inputs (22)

NameTypeDefaultDescription
emptyFLOAT0.00-1000000000–1000000000Returned when any plugged source is empty / muted / bypassed.
not_emptyFLOAT1.00-1000000000–1000000000Returned when every plugged source has a live value.
any_01opt*Any type. Unplugged slots are ignored.
any_02opt*Any type. Unplugged slots are ignored.
any_03opt*Any type. Unplugged slots are ignored.
any_04opt*Any type. Unplugged slots are ignored.
any_05opt*Any type. Unplugged slots are ignored.
any_06opt*Any type. Unplugged slots are ignored.
any_07opt*Any type. Unplugged slots are ignored.
any_08opt*Any type. Unplugged slots are ignored.
any_09opt*Any type. Unplugged slots are ignored.
any_10opt*Any type. Unplugged slots are ignored.
any_11opt*Any type. Unplugged slots are ignored.
any_12opt*Any type. Unplugged slots are ignored.
any_13opt*Any type. Unplugged slots are ignored.
any_14opt*Any type. Unplugged slots are ignored.
any_15opt*Any type. Unplugged slots are ignored.
any_16opt*Any type. Unplugged slots are ignored.
any_17opt*Any type. Unplugged slots are ignored.
any_18opt*Any type. Unplugged slots are ignored.
any_19opt*Any type. Unplugged slots are ignored.
any_20opt*Any type. Unplugged slots are ignored.

Outputs (1)

NameTypeDescription
floatFLOAT