%mathpiper,def="GgbLine"

//Retract("ggbLine", *);

ggbLine(point1Label, point2Label) :=
[
    Local(command);
    
    command := PatchString("Line[<?Write(ToAtom(point1Label));?>,<?Write(ToAtom(point2Label));?>]");
    
    
    JavaCall(geogebra,"evalCommand",command);
];

%/mathpiper

    %output,preserve="false"
      Result: True
.   %/output


