You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sequenceDiagram
Alice->>Bob: Hello Bob, how are you?
alt is sick
Bob->>Alice: Not so good :(
end
opt Extra response
Bob->>Alice: Thanks for asking
end
Loading
Let's consider now additional alt to check for headache.
Should it be
sequenceDiagram
Alice->>Bob: Hello Bob, how are you?
alt is sick
Bob->>Alice: Not so good :(
end
opt Extra response
Bob->>Alice: Thanks for asking
end
alt Bob has headache
Alice->>Bob: Take a painkiller
end
Loading
Or
sequenceDiagram
Alice->>Bob: Hello Bob, how are you?
alt is sick
Bob->>Alice: Not so good :(
alt Bob has headache
Alice->>Bob: Take a painkiller
end
end
opt Extra response
Bob->>Alice: Thanks for asking
end
Loading
Or
sequenceDiagram
Alice->>Bob: Hello Bob, how are you?
alt is sick
Bob->>Alice: Not so good :(
alt Bob has headache
Alice->>Bob: Take a painkiller
else Bob doesn't have headache
Alice->>Bob: Get well!
end
else is well
Bob->>Alice: Feeling fresh like a daisy
end
opt Extra response
Bob->>Alice: Thanks for asking
end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, if I understand correctly according to https://mermaid.js.org/syntax/sequenceDiagram.html#alt an
alt
without else should be written asopt
? Then why something like this is possible?Let's consider now additional
alt
to check for headache.Should it be
Or
Or
Beta Was this translation helpful? Give feedback.
All reactions