I am needing to modify the code to check 2 variables right now. As long as one of the variable values is found in the table, I want to have a CONTINUE disposition.
Here is the old code…
## check value in the Physicians_ALLOW table
set disp CONTINUE
set disp [hcitbllookup Physicians_ALLOW $obr16]
if {![string length $disp]} {set disp KILL}
echo THE DISPOSITION VALUE===== $disp
Here is what I’m thinking for the new code
## check value in the Physicians_ALLOW table
set disp_obr16 CONTINUE
set disp_orc12 CONTINUE
set disp_obr16 [hcitbllookup Physicians_ALLOW $obr16]
set disp_orc12 [hcitbllookup Physicians_ALLOW $orc12]
if {![string length $disp_obr16]} {set disp KILL}
if {![string length $disp_orc12]} {set disp KILL}
echo THE DISPOSITION VALUE===== $disp
*Would the 2 last if statements eliminate the need for an OR syntax?
**Is there an easier or more efficient way of doing this?