Previous | Next

Lisp conditionals

  (if (= imageMode RGB)
      (do-color-stuff)
      (do-grey-stuff)
  )

  (if (or (= imageMode RGB)
          (= imageMode RGBA))
      (do-color-stuff)
      (do-grey-stuff)
  )