State: Choice, Fork and Join

Pseudo-states: a fork and join drawn as bars, a choice drawn as a diamond.

state-choice-fork-and-join.mmd
stateDiagram-v2
  state f <<fork>>
  state j <<join>>
  state c <<choice>>
  [*] --> f
  f --> A
  f --> B
  A --> c
  c --> j
  B --> j
  j --> [*]
Output
State diagram, Zombie Mermaid A B

More State diagram examples