)).add(new go.Shape('Circle', shapeStyle({ desiredSize: new go.Size(4, 4) })))
    );

    myDiagram.nodeTemplateMap.add(
      'If',
      new go.Node('Auto', nodeStyle({ minSize: new go.Size(64, 32) })).add(new go.Shape('Diamond', shapeStyle()), new go.TextBlock('If', textStyle()).bindTwoWay('text'))
    );

    myDiagram.nodeTemplateMap.add(
      'EndIf',
      new go.Node(nodeStyle({ avoidable: false })).add(new go.Shape('Diamond', shapeStyle({ desiredSize: new go.Size(4, 4) })))
    );

    myDiagram.