Please provide a macro to access the PlantUML version

0 votes
asked May 24, 2017 in Closed feature request by boshka (3,060 points)
edited May 24, 2017 by boshka

I'd like to have a macro that provides the PlantUML versions.

So I can do something like:

!if %PLANTUML_VERSION% >= 1.2017.12
    <new code>
   <legacy code>

1 Answer

0 votes
answered May 29, 2017 by plantuml (257,900 points)
selected Mar 23, 2018 by Anthony-Gaudino
Best answer

It's not possible in official release, but in last beta:

You can have:

title this is %PLANTUML_VERSION%
alice -> bob : hello
!if %PLANTUML_VERSION% > 1201713
alice -> bob : A
alice -> bob : B

Unfortunately, this is not working with "old" release.

Thanks for the suggestion!

commented May 30, 2017 by Serge Wenger Work (14,160 points)

Could you add !if in the PlantUML keyword file generated with -language?

commented May 30, 2017 by plantuml (257,900 points)
Sure, thanks for the remind ! :-)