dbj.cond
Version:
Emulates LISP COND statement behaviour in JavaScript. Comparators used are decoupled and replaceable.
28 lines (17 loc) • 1.39 kB
Markdown
**dbj.cond()**
(c) 2009-2018 .. and beyond, by dbj.org
Licensed under the Apache License, Version 2.0
<img src="http://dbj.org/wp-content/uploads/2013/07/comparator-e1373486780369.jpg" alt="dbj.cond() by dbj.org" width="100%" align="left" vspace="5%" />
<p> </p>
**dbj.cond** emulates in javascript the behaviour of the LISP COND
<a href="https://en.wikipedia.org/wiki/Conditional_(computer_programming)"
target="_blank">conditional</a> statement.
For overview, usage, tests and a such please go to the short <a href="https://github.com/DBJDBJ/dbj.cond/blob/master/man.md" target="_blank">**online manual**</a> on the GitHub project.
For a testing project please go to <a href="https://github.com/DBJDBJ/dbj.cond.test" target="_blank">**dbj.cond.test**</a> in the GitHub.
There are (numerous) real life examples proving the quality of this idiom. Please do feel free to send us your code.
We might publish it and discuss it on https://dbj.org
**CONTACT+SUPPORT**
- Mailing <a href="mailto:info@dbj.org" target="_blank">info@dbj.org</a>
- GitHub <a href="https://github.com/DBJDBJ/dbj.cond/issues" target="_blank">issues page</a>.
---------------------------------------------------------------------
### © 2018 [](http://www.dbj.org "dbj")