Skip to content

Bug when using multiple 'If-Else' components. #6216

Open
@azhig

Description

@azhig

Bug Description

If only one 'If-Else' component is used in the project, it works as expected. However, if a second or subsequent component is added, the flow does not stop on false branches. That is, the value None is passed as the output of the component, but the flow itself does not stop with it

Image

Image

Reproduction

Steps to reproduce:

  1. Add an 'If-Else' component.
  2. Add a second 'If-Else' component.
  3. Connect all True and False outputs to 'Chat-output', optionally with a 'Prompt' component added beforehand.
  4. Run the flow."

Expected behavior

The second 'If-Else' should behave the same way as the first one.

Image

Who can help?

@edwinjosechittilappilly
@irshadmb

Operating System

Fedora release 40 (Forty)

Langflow Version

1.1.4

Python Version

3.12

Screenshot

No response

Flow File

multiple if-else bug.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions