infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
If statement in translation
Joseph Paquette
I almost am embarrased to ask this question, in a translation i am using an if statment. If ~0(0).OBR.238.[4] eq =Stress test i am getting a failure due to a multi word answer. How to i search for "Stress test" in a translation if there is a space in the text??
Find more posts tagged with
Clovertech
Comments
jcobane1
Joseph,
This one has gotten me before as well. To work around it, copy the literal 'Stress test' to a temp variable, and then use the temp variable in the IF statement:
COPY =Stress test -->
@stresstest
IF ~0(0).OBR.238.[4] eq
@stresstest
Hope this helps.
Jim Cobane
Henry Ford Health
Joseph Paquette
Thanks, worked perfectly.
Joe
System
Originally posted by Ruth Chong
Hi All experts out there....
If i want to compare say IF
@label
=a/treatment/findings
how do i make the engine read the entire a/treatment/findings...it cannot process because of the /
HELP!..thanks
Tom Rioux
Ruth,
The translator that is doing the IF won't be able to recognize the "/" character because it has special meaning. Here is what you can try:
1. In the copy statement where you are setting your
@label
variable, change your slashes to underscore via regsub or something. You can use this: regsub -all "/" $xlateInVals "_" xlateOutVals
That should be all you need in the Tcl fragment.
2. In the IF statment, simply change it to say:
IF
@label
eq =a_treatment_findings
Then perform whatever you want to do underneath the IF
I have tested this on my 5.2 Clovereleaf and it appears to be working just fine. Let me know if you have any questions.
Thanks...
Tom Rioux
Baylor Health Care Systems
RobertKersemakers
Another possible solution would be to put the condition into a variable:
COPY =a/treatment/findings ->
@condition
IF
@label
eq
@condition
System
Originally posted by Ruth Chong
Hi All Experts
Thanks for the precious advice, I adopted using the temp variable instead.