3

How to represent nesting of conditionals in sequence diagram? The image as given in this SO post depicts if/else:

enter image description here

How could I cater for the following:

if(a == 1 && b == 3) {

}else {


}

I need to represent multiple boolean conditions. I could not find anywhere that taught me to represent this.

Rann Lifshitz
  • 4,040
  • 4
  • 22
  • 42
Jwanda
  • 31
  • 1
  • Since my answer is the only one here - can you please think of selecting it as this question's answer, and possibly upvote it? Thank you for your consideration. – Rann Lifshitz Apr 16 '19 at 08:32

1 Answers1

3

The answer here is quite simple:

Replace the value of the [Success] guard (as seen in diagram above) with [a==1 && b==3]

References:

Rann Lifshitz
  • 4,040
  • 4
  • 22
  • 42