Hello P.,
For note on 'if statement" see Wanted Request/Question here:
Regards.
(--------)
Here is another example:
@startuml while(int i=0;i<100;i++) if ( conf ) then (true) :finalize; note right if statement end note break endif end while @enduml
If that can help,Regards,Th.