PricingBlog

How do I connect the Reduce accumulator ("result") to a Set function's Object input in the visual

  • marta_filipe-1483899639340994854

    Marta_Filipe

    2 hours ago

    Hello!
    How do I connect the Reduce accumulator ("result") to a
    Set function's Object input in the visual formula editor?

    When I click the + on Set's Object input, the "From Reduce"
    section only shows "item" and "index" "result" doesn't
    appear. Typing "result" in the search field shows "No results".

    The "result" node exists on my canvas (From Reduce > result)
    but I can't find a way to connect it to the Set input.

    What's the correct method?
  • bsr.24-1483924675372384256

    Bobby Randhawa

    46 minutes ago

    Hard to say what's going wrong without seeing your setup, could you share a screenshot?

    The attached screenshot shows a working Reduce example for reference.

    The Add node's two inputs are connected to item and result (both from Reduce), the Array feeds into
    Reduce's Array input, and Add feeds into Reduce's Formula input. Output is 6 (1+2+3).
    1483924674571145286-image.png