[OpenSCAD] Function to return the Opposite value

MichaelAtOz oz.at.michael at gmail.com
Thu Oct 31 03:39:48 EDT 2019


  notThing = ( (isThing == 0) ? 1 : 0);


  function notThing() = ( (isThing == 0) ? 1 : 0);

The former saves typing ()

Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
Sent from: http://forum.openscad.org/

More information about the Discuss mailing list