I want to do something really simple: I want to pass a string into a Pig script. The string is either "stdout" or some target file name. Say the string gets bound to $OUTPUT. That all works fine.
After the script has computed a result R, depending on the value of $OUTPUT, I want either to do a dump R (if $OUTPUT == "stdout"), or a STORE of R into the given file name that's held in $OUTPUT. How do I do that conditional? I played with bincond, but got stuck. Thanks! Andreas Andreas
