9 Replies Latest reply: Jun 18, 2014 4:28 AM by Prashant Rajpoot RSS

    If..Then.. Renaming fields based off data

      I have done some searching and found many post about standard if/then and nested statements. What I could find and was wondering is if I could alias a field based on a different field.

       

      Here is some code that I attempted in the script editor. I know its not right, but I think it get the point and idea of what I am trying to do across.

       

      Is something like this possible? If not, something close? Or do I need to load the data differently to accomplish what I am trying to do?

       

      Thanks,