Function Note on a Member

0 votes
asked Sep 9, 2019 in Question / help by kjw


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

un-comment highlighted 


!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


        end note




!ifdef PART1

title Elements and Notes  Part1


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


1 Answer

0 votes
answered Sep 9, 2019 by plantuml (279,680 points)