Function: calcFunc-if
calcFunc-if is an autoloaded and byte-compiled function defined in
calc-prog.el.gz.
Signature
(calcFunc-if C E1 E2)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-prog.el.gz
(defun calcFunc-if (c e1 e2)
(if (Math-zerop c)
e2
(if (and (math-is-true c) (not (Math-vectorp c)))
e1
(or (and (Math-vectorp c)
(math-constp c)
(let ((ee1 (if (Math-vectorp e1)
(if (= (length c) (length e1))
(cdr e1)
(calc-record-why "*Dimension error" e1))
(list e1)))
(ee2 (if (Math-vectorp e2)
(if (= (length c) (length e2))
(cdr e2)
(calc-record-why "*Dimension error" e2))
(list e2))))
(and ee1 ee2
(cons 'vec (math-if-vector (cdr c) ee1 ee2)))))
(list 'calcFunc-if c e1 e2)))))