title: Pig Conditional Operators
body: <p>Consider the below relation    </p>
  
  <pre><code>test = LOAD 'input' USING PigStorage(',') as (a:chararray, b:chararray);
  </code></pre>
  
  <p>Is there a way to achieve the following</p>
  
  <pre><code>if (b == 1) {
      a = 'abc';
  else if (b == 2) {
      a = 'xyz';
  else 
      // retain whatever is there in the column 'a'
  </code></pre>