I have done it this way also, using the not symbol ' 10 LC='@ADM.PAT.ccdqr.mult.response["OEALL101",3] 11 LC='@ADM.PAT.ccdqr.mult.response["OEALL101",5]
-----Original Message----- From: meditech-l@MTUsers.com [mailto:[EMAIL PROTECTED] On Behalf Of Gary Hall Sent: Thursday, May 17, 2007 7:58 AM To: Lovelace, Chuck; meditech-l@MTUsers.com Subject: RE: [MEDITECH-L] Help with a line check.. Chuck, in Magic coding, you can't set up a condition as "not equal to nil". You can use that type of logic when checking for a non-nil value (for ex, [EMAIL PROTECTED]"JONES" etc....}. But for nil checks you have to say, for example, "if not @ADM.PAT.name", i.e., "if @ADM.PAT.name doesn't exist". Ah, the strange vagaries of nil. So, your condition always works out to nil, hence it never prints. Now, using a bunch of "or" conditions with nil checks may create some challenges. I might set it up as: [EMAIL PROTECTED]@MRI.PAT.urn,"NUR.ALLERG"] 1; [EMAIL PROTECTED]@MRI.PAT.urn,"OEFA.S"] 1; [EMAIL PROTECTED]@MRI.PAT.urn,"OEADMAIL"] 1;""}}} In other words, if any of the three are non-blank, print. Else don't. Good luck. Gary Hall Clinical Applications Specialist Estes Park Medical Center Information Systems Department 970-577-4443 ________________________________ From: meditech-l@MTUsers.com [mailto:[EMAIL PROTECTED] On Behalf Of Lovelace, Chuck Sent: Wednesday, May 16, 2007 7:56 AM To: meditech-l@MTUsers.com Subject: [MEDITECH-L] Help with a line check.. I'm writing a NPR report in RXM.PAT and using this line check to suppress printing if all three queries are left blank. If any one of the three are answered I want the line to print. The LC suppresses printing, but all the time, whether or not the queries have been answered, I know its probably a simple correction but I'm stuck in a brain fade at the moment. Any help would be appreciated. [EMAIL PROTECTED]@MRI.PAT.urn,"NUR.ALLERG"]! [EMAIL PROTECTED]@MRI.PAT.urn,"OEFA.S"]! [EMAIL PROTECTED]@MRI.PAT.urn,"OEADMOALL"]'="" Chuck Lovelace, RN, Clinical Analyst Door County Memorial Hospital Information Systems 323 South 18th Avenue Sturgeon Bay, WI 54235 Office 920-746-3608 Fax 920-743-6204 Email - [EMAIL PROTECTED] =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= To subscribe or unsubscribe to the meditech-l, visit MTUsers.NET. To check the status of the meditech-l, visit MTUsers.NET. For help, email [EMAIL PROTECTED] Visit the MTUsers WikiPedia at MTUsers.NET/mwiki ______________________________________ meditech-l mailing list meditech-l@MTUsers.com http://mtusers.com/mailman/listinfo/meditech-l ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This footnote also confirms that this email message has been swept by Sophos and MIMEsweeper for the presence of computer viruses. ********************************************************************** =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= To subscribe or unsubscribe to the meditech-l, visit MTUsers.NET. To check the status of the meditech-l, visit MTUsers.NET. For help, email [EMAIL PROTECTED] Visit the MTUsers WikiPedia at MTUsers.NET/mwiki ______________________________________ meditech-l mailing list meditech-l@MTUsers.com http://mtusers.com/mailman/listinfo/meditech-l