PatPanda
PatPanda

Reputation: 5070

PlantUML autonumber only for one direction (left to right) arrows

I would like to automatically, not hard code increment numbers on certain steps using PlantUML.

I have the following code:

group Step: incrementOnlyLeftToRight
    autonumber
    Left -> Right ++: needToIncrementAuto
    Right --> Left : noNeed
    Left -> Right ++: needToIncrementAutoAgain
    Right --> Left : noNeedAgain
end

Where you can see I am using the autonumber construct.

This, unfortunately, increases the number for everything (please see screenshot)

enter image description here

How to tell autonumber to increment only for when Left goes to Right, but not the opposite?

Upvotes: 0

Views: 26

Answers (0)

Related Questions