I want to create a FSM diagram and wanted to use plantuml for that. I stuck with backward arrows
There is a way to create backward arrows but it looks overcomplicated and too limited for such a simple task
@startuml
:start;
repeat :Ask to enter login;
repeat while(Is name valid?) is (No) not (Yes)
:play game;
@enduml
but when you want to implement a little bit more complex logic like:
- Ask to enter name
- Ask to enter password
- On the third failed attempt go back to the (1)
it looks like it's just not possible with plantuml
I don't know if it called State diagram but I took a look on all types of diagrams plantuml supports and it seems to be the fittest one



I would say that an activity diagram works best.
What you described is easy to explain, but complex to display in correct UML, I don't think that's specific to plantuml. Here's how I would express what you said: