mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Re-added is_def(){
This commit is contained in:
parent
cdaeb136d0
commit
b1c7e71294
1 changed files with 8 additions and 0 deletions
|
@ -21,6 +21,14 @@
|
|||
function default(v,dflt=undef) = is_undef(v)? dflt : v;
|
||||
|
||||
|
||||
// Function: is_def()
|
||||
// Usage:
|
||||
// is_def(v)
|
||||
// Description:
|
||||
// Returns true if `v` is not `undef`. False if `v==undef`.
|
||||
function is_def(v) = !is_undef(v);
|
||||
|
||||
|
||||
// Function: is_vector()
|
||||
// Usage:
|
||||
// is_vector(v)
|
||||
|
|
Loading…
Reference in a new issue