Actually, the documentation at https://wiki.geogebra.org/e... reads
String evalCommandGetLabels(String cmdString)5.0Like evalCommands, but the return value is an array with labels of created objects.
That is not correct, the return value is not an array of strings.
If you run for example
then Ls is a NativeJavaObject, which looks very close to a string containing a comma separated list of labels.
If you want an array of string, then you have to use instead
In case of error, the return value is a null object.
Letting ggbApplet.evalCommandGetLabels return an array of strings as advertised instead of just one string would possibly break existing code. Then updating the documentation to describe the correct behaviour would be more efficient.
I can do that for both english and french documentations if necessary.