Decision Nodes

Decision nodes create branches in your flowchart.

Syntax

Use the diamond shape for decisions:

check:Is Valid?|diamond

Basic Decision

@flow
[nodes]
  start:Start|terminator
  check:Age >= 18?|diamond
  allow:Grant Access
  deny:Deny Access
  end:End|terminator

[edges]
  start->check
  check->allow:yes
  check->deny:no
  allow->end
  deny->end
Rendered diagram

Multiple Conditions

For more than two branches, chain decisions:

Rendered diagram

Nested Decisions

Complex logic with nested checks:

Rendered diagram

Decision Labels

Use edge labels to show conditions:

Next Steps

Last updated