If Statement issues

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf If Statement issues

  • Creator
    Topic
  • #55436
    Sebastien Bazile
    Participant

      Need to write this If statement that’s driving me bunkers. Any help is appreciated.

      -When TXA|13 is populated, the value in that field should be moved to TXA|12; an “A” for addendum must be hardcoded to TXA|17

      -When TXA|13 is blank, TXA|17 must be valued with “S” for signed

      Thank you.

    Viewing 1 reply thread
    • Author
      Replies
      • #85318
        James Cobane
        Participant

          Is this within in an Xlate?  If so, it should be fairly straightforward.  Simply use the IF command tool to configure the statement in your xlate checking for not equal to @null in TXA:13.  Pseudo coding the logic would yield something like

          if TXA:13 not equal @null

             COPY TXA:13 to TXA:12

             COPY =A to TXA:17

          else

             COPY =S to TXA:17

          I’m assuming when you say “TXA|13 is blank”, you mean is null (not valued).

          Does this make sense?

          Jim Cobane

          Henry Ford Health

        • #85319
          Sebastien Bazile
          Participant

            Thank you Jim I will try that in the a.m.

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.