I was wondering if the following is possible.
I would like to use a Variable set string to prompt the user for a response. With the response %answer[1]% , I would like to see if that response contains a certain phrase which is defined by a list , for example from the list below , if the first item answer contains htn, I would like the response to be "patient has hypertension."
I would like the if then statment to look through the list for the item and then print the repsonse.
I was able to do this by using multiple if then statements, but is is more cumbersone to change them when I need to. I was looking for a way to maintaine a list , so I can change the response periodically.
I was also looking for a way to keep the data in Macro Express with out having to reference an outside file if possible.
Variable Set String %answer[1]%
if %answer[1]% = "htn"
text type %response[1]%
end if
if %answer[1]% = "cough"
text type %response[1]%
end if
list
answer \ response
htn \ patient has hypertension
cough \ patient has a cough
Thanks for any suggestions,
James