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)
)

Language of Jedi Masters, is Lisp!

Proficient in prefix notation will you be!




Hey, wait ... did you ever notice that Yoda ... looks a bit like Wilber?



Image credit: ste3ve on Flickr / Wikimedia commons (Statue of Yoda at the Lucas studio at the Presidio).