Previous | Next

Lisp conditionals


(if (= imageType GRAY)
    (do-greyscale-stuff)   ;; if grayscale
    (do-color-stuff)       ;; else
)

(if (or (= imageMode RGB)
        (= imageMode INDEXED))
    (do-color-stuff)
    (do-greyscale-stuff)
)

Add an or the same way.

You may think this seems a bit backward ...