jQuery cond: A chainable “if-then-else” statement plugin | Bypeople

jQuery cond: A chainable “if-then-else” statement plugin

Like my iff plugin, this small jQuery plugin gives you the ability to perform conditional logic without breaking the chain, but in addition to if, allows for any number of else if tests and callbacks, as well as a final else callback.The cond plugin was patterned after the Lisp cond operator, which was basically the precursor to the if-then-else control structure. This pattern was suggested by Stephen Band and DBJDBJ as an elegant solution to the “if-then-else, without breaking the chain” di…



Related Deals


Related Posts