Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › How to use IF ESEL action
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..
Hi Hongle,
Many roads to Rome…
You can use an IF…ELSE like this:
IF eq =STAC COPY =SC -> ELSE COPY ->
Or you can use a bit of TCL-code within a single COPY:
COPY ->
TCL:
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