# Use Cases

# How can I represent an infinite loop in a sequence diagram?

// The diagram is generated with the following code.
// Test it on https://app.zenuml.com
@Starter(User)
while(!loggedin) {
  MyService.login()
}

infinite loop in a sequence diagram

ref: stackoverflow (opens new window)