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

Add ability to specify directionality of condition branches #3

Closed
TravisCarden opened this issue Sep 27, 2013 · 6 comments
Closed

Add ability to specify directionality of condition branches #3

TravisCarden opened this issue Sep 27, 2013 · 6 comments

Comments

@TravisCarden
Copy link

Is it possible to specify the directionality of individual condition branches such that a "yes" branch may go right in one case but down in another? I'm trying to design my flowchart so that the success path is a straight line down and error conditions exit right. If this isn't currently possible, could the functionality be added? Thanks!

@adrai
Copy link
Owner

adrai commented Sep 27, 2013

Unfortunately not, but why not just invert the condition?

@TravisCarden
Copy link
Author

Inverting the condition would achieve the layout goal but could also obscure the logic with double negations and make the chart less readable. Suppose, for example, an electrical device that's designed to fail when a shunt is tripped. The natural way to express the flow would be if (shunt_is_tripped == YES) exit();, but that would branch right for the main path and put the error condition below in what seems like it should be the success path. Inverting the condition to correct the branching directionality would result in something like if (shunt_is_not_tripped == NO) exit();, and that's confusing.

@adrai
Copy link
Owner

adrai commented Sep 27, 2013

Ok, let me think about it... :-)

@TravisCarden
Copy link
Author

I appreciate it. :-)

@adrai
Copy link
Owner

adrai commented Sep 27, 2013

included in version v1.2.0 ;-)

@adrai adrai closed this as completed Sep 27, 2013
@TravisCarden
Copy link
Author

Wow, thanks! @adrai++

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