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!