Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to designate True/False outputs for custom nodes? #861

Open
aleybovich opened this issue May 4, 2024 · 1 comment
Open

Any way to designate True/False outputs for custom nodes? #861

aleybovich opened this issue May 4, 2024 · 1 comment

Comments

@aleybovich
Copy link

aleybovich commented May 4, 2024

I have a flow logic in a YAML file with "condition", "action", and "terminate" blocks. Condition block makes a calculation and then triggers a linked action block on a True or False path. Something like this:

flowchart TD
    C{Condition2} -->|Yes| D[Action1]
    C -->|No| E[Action2]
    E --> T1((( ))) 
    D --> F{Condition2}
    F -->|Yes| G[Action1]
    F -->|No| T2((( )))

I need to be able to create such flow charts, and distinguish Yes/True and No/False outputs for Condition elements. When I export the model, i need to be able to parse and know which connection is True and which is False. Any ideas how to implement that?

@jerosoler
Copy link
Owner

View for vertial desgin:

For labels:

Detect Yes or No:
The first output of the node would be true "output_1" and false "output_2".
You can get the information about each node with: editor.getNodeFromId(id).

Shaps:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants