You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by James Newhaven <ja...@gmail.com> on 2012/08/14 18:02:28 UTC

Nested binary conditionals

Has anyone had success nesting conditional statements?

I am trying to implement a standard if, else if, else if statement without
success.

e.g.

A = FOREACH B GENERATE (condition ? value_if_true : (condition2 ?
value_if_true : (condition3 ? value_if_true: 1)))

Thanks,

James