@startuml start note left Do this for each item in the list. An item has a name, a sell in value and a quality value end note :lower quality with 1; :lower sell in with 1; if (sell in < 0) then (yes) :lower quality with 1; else (no) endif stop @enduml