!global $variable ?= "default value" produces error a001

0 votes
asked Mar 12 in Bug by kirchsth (3,140 points)

found a minor bug, maybe you want to fix it.
I know default values are only useful in combination with global values and therefore "global" is not required. But if I use it then I get an error a001

e.g. this is not working

@startuml
!global $variable = "changed value"
!global $variable ?= "default value"
[A] -> [B]: $variable
@enduml

it is working without global

@startuml
!global $variable = "changed value"
!$variable ?= "default value"
[A] -> [B]: $variable
@enduml

BR Helmut

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...