Undefined variable

0 votes
asked Aug 1, 2019 in Question / help by gbrusella (200 points)

Given the following example:

!function LineColor() return #7BFFBD

!function Msg($from, $to, $note = "", $active = "false")
    !if ((activate == "true") || (activate == "TRUE"))
        $from [LineColor()]->> $to ++
        $from [LineColor()]->> $to

    !if ($note!="") 
        note left : $note

    participant "Service A" as A
    participant "Service B" as B
end box

    participant "Service C" as C
end box

Msg(A, B, "",true)


Do you know what I'm doing wrong?

1 Answer

0 votes
answered Aug 1, 2019 by plantuml (264,940 points)
commented Aug 1, 2019 by gbrusella (200 points)
Thanks. It works... but why the quote marks on a defined item? In the old preprocessor we did not require such element on the invocation.
commented Aug 2, 2019 by gbrusella (200 points)
Perfect. Thanks you,