$ 0 0 yes, put the condition in udf result.addValue(input1);if(field.length()>20){ result.addValue(input2);}