Hi Use the ternary statement like this: (a1 == b1) ? c1 : c2
Regards, Ruslan Al-Fakikh -----Original Message----- From: Srini Naravatla [mailto:[email protected]] Sent: Thursday, June 07, 2012 8:10 AM To: [email protected] Subject: pig conditional operators how do i go about writing simple " CASE " statement in apache pig. example ------------ case when a1 = b1 then c1 when a = b2 then c2 end any inputs appreciated.
