How to use IF ESEL action

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to use IF ESEL action

  • Creator
    Topic
  • #48949
    Hongle Sun
    Participant

      Hi, can anyone tell me how to use IF..ELSE stament in translation conf?

      That says, I want to translate one incoming field data if is STAC into SC, ortherwise left it.., I thought of using table, but it doesn’nt fit.. thanks..

    Viewing 0 reply threads
    • Author
      Replies
      • #60215
        Robert Kersemakers
        Participant

          Hi Hongle,

          Many roads to Rome…

          You can use an IF…ELSE like this:

          Code:

          IF eq =STAC
           COPY =SC  ->  
          ELSE
           COPY  ->  

          Or you can use a bit of TCL-code within a single COPY:

          Code:

          COPY  ->  

          TCL:

          Code:

          lassign $xlateInVals invalue
          if {[string equal $invalue “STAC”]} {
           set xlateOutVals [list “SC”]
          } else {
           set xlateOutVals [list $invalue]
          }

          Hope this helps.

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

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