Jwanda
Jwanda

Reputation: 31

Showing multiple booleans in sequence diagram

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.

Upvotes: 3

Views: 1317

Answers (1)

Rann Lifshitz
Rann Lifshitz

Reputation: 4090

The answer here is quite simple:

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

References:

Upvotes: 3

Related Questions