Discussion:
[OpenSCAD] Extracting characters of a string
Ari Diacou
2018-08-24 16:48:53 UTC
Permalink
Why isn't this working:

in="testing";
for(i=[0:len(in)]){
echo(in(i));
}
Eric b
2018-08-24 16:53:19 UTC
Permalink
I think it requires square brackets.

in="testing";
for(i=[0:len(in)]){
echo(in[i]);
}
Post by Ari Diacou
in="testing";
for(i=[0:len(in)]){
echo(in(i));
}
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Ari Diacou
2018-08-24 17:01:59 UTC
Permalink
derp
Post by Eric b
I think it requires square brackets.
in="testing";
for(i=[0:len(in)]){
echo(in[i]);
}
Post by Ari Diacou
in="testing";
for(i=[0:len(in)]){
echo(in(i));
}
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Loading...