Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How can I use a conditional statement in a custom function referencing a specific column?

Hello! I created a custom function to replace values based on a table merge and return the "original value" & "_NOT FOUND" when there is no match. I recorded the steps and then started replacing th...
  • jbwtp's avatar
    3 years ago

    Hi Anonymous,

     

    Just replace COL_LEFT in TO_2 to Record.Field(_ , COL_LEFT{0}). You are passing the list(with column names) , the first item should be the name of the column that you want to add the "_not_found" to.

     

    Cheers,

    John