(if (= (car (gimp-selection-is-empty img)) FALSE) (do-stuff) (gimp-message "Nothing is selected") )
- test booleans against TRUE or FALSE!
- GIMP routines always return a list,
so use car
(if (= (car (gimp-selection-is-empty img)) FALSE) (do-stuff) (gimp-message "Nothing is selected") )