Customer Portal

if statement in in Reformat

Comments 2

  • Avatar
    dtaylor
    0
    Comment actions Permalink
    You can use the iif function in Reformats. You can also go into the source tab and write your own function to analyze the input and return the end result of your logic. I've resorted to doing that when I have complicated branching logic to evaluate values.
  • Avatar
    jblythe99
    0
    Comment actions Permalink
    please disregard as I have solved this. The correct way to apply this in a transformer is with an "iff" statement:

    iff($in.0.foo >= 2, bar,$in.0.foo);

    hope that helps anyone else.

Please sign in to leave a comment.