Function Note on a Member

0 votes
asked 5 days ago in Question / help by kjw

Hi

What is the reason my function gives a syntax error when the analogue equivalent is OK 

un-comment highlighted 

@startuml

!unquoted function DRAW($x) return %set_variable_value($x, 1)

!function noteMember($part, $direction, $class, $member, $note)

    !if %variable_exists($part)

        note $direction of $class::$member

            $note

        end note

    !endif

!endfunction

DRAW(PART1)

!ifdef PART1

title Elements and Notes  Part1

!endif

class elementArray <<(E,#32DC32)element>> {

        name : someId

        name : MemberA

        name : MemberB

        name : MemberC

        name : MemberD

        name : MemberE

    }

    'noteMember("PART1", "left", "elementArray", "name : MemberB", "Member of Interest")

    note left of elementArray::"name : MemberD"

        Another Member Of Interest

    end note

@enduml

1 Answer

0 votes
answered 5 days ago by plantuml (202,540 points)
...