|
#1
|
|||
|
|||
|
I have to reject a message unless it is from one of two Provider's Names.
I have this in the Source Filter as a rule: Accept message if "msg['ORC']['ORC.12']['ORC.12.1'].toString()" equals 'NAME1'|'NAME2' (Where for this example, the doctor's names are NAME1 and NAME2) Is this correct? What I am really concerned about are the quotes around the doctor's names being correct and the placement of the pipe symbol for the 'OR'. Thank you in advance, Robert Last edited by RobertD; 04-27-2012 at 06:34 AM. |
|
#2
|
|||
|
|||
|
Nevermind; I switched it to JavaScript and I'm doing it this way:
Code:
if ((msg['ORC']['ORC.12']['ORC.12.1'].toString() == 'NAME1') || (msg['ORC']['ORC.12']['ORC.12.1'].toString() == 'NAME2')) return true; else return false; |
![]() |
| Thread Tools | |
| Display Modes | |
|
|