...IF ELSEIF ELSE it's all clear but what about unequality of BOOL type possible value set and IF alternatives set
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html