> Is there a way to conditionally cause compilation to stop ?
> I have a script where certain combinations of parameters are useless and
> i'd like to be able to cause OpenSCAD to somehow stop compilation.
Best you can do is something like
if (parameters valid)
Anyway, especially for cmd-line use, I think having an error message (and error return code?) would make sense.
There is also the issue of cleaning up echo(), maybe these issues can be combined.
Assert would be something like "assert(<condition expression>, <error text>);"
As for cleaning up echo(), i was playing with a way for a run of an .scad file to output the parameters for the next iteration of that .scad file, allowing all sorts of fractally and organic products. Also for controlling the merging generated .stl's. A clean and maybe formatted echo() would be very helpfull.