Version number & error() function
February 23, 2018 05:09PM
Hi,
Is there a way to get the version identifier of the running OpenScad from within a script? That would be handy for ensuring that a new-version script doesn't get run on an old-version system.

In a similar vein, an error() function would be useful, to kill a script if some variable or parameter is out-of-bounds.

e.g.

if ($version < "2016") {
error("Requires version 2016.XX");
}
Sorry, only registered users may post in this forum.

Click here to login