I wrote the following code in the 'Use source script' but it's clearing all the fields to empty when I upload data. Am I missing something?

 

answer = (function transformEntry(source) {

    if (source.getValue() == "Active" || source.getValue() == "Completed" || source.getValue() == "Cancelled" || source.getValue() == "Terminated"){
        target.setValue(source.getValue());
    } else {
        target.clearValue();
    }

})(source);