RJ Jackson
Technical User
VB Script Error: C:\Users\hrjco\AppData\Local\Adersoft\VbsEdit\Temp\OCDEZEYU.vbs(3, 3) Microsoft VBScript compilation error: Expected 'End'
Purpose of script: I'm essentially trying to see if variable GetDocALIAS = "A587" then the variable GetDOCTYPE will be stored as Doc1, if it's not A587, and it's A588, then GetDOCTYPE will be Doc2, etc etc.
What am I missing here? HELP!!!
Function GetDOCTYPE(text)
IF GetDOCALIAS = "A586" then GetDOCTYPE = "Colonoscopy Orders"
Else GetDOCALIAS = "A587" then GetDOCTYPE = "Ercp Orders"
ElseIF GetDOCALIAS = "A588" then GetDOCTYPE = "Flex Sigmoidoscopy Orders"
ElseIF GetDOCALIAS = "A589" then GetDOCTYPE = "Peg Orders"
ElseIF GetDOCALIAS = "A590" then GetDOCTYPE = "Upper Endoscopy Orders"
END IF
End Function
Purpose of script: I'm essentially trying to see if variable GetDocALIAS = "A587" then the variable GetDOCTYPE will be stored as Doc1, if it's not A587, and it's A588, then GetDOCTYPE will be Doc2, etc etc.
What am I missing here? HELP!!!
Function GetDOCTYPE(text)
IF GetDOCALIAS = "A586" then GetDOCTYPE = "Colonoscopy Orders"
Else GetDOCALIAS = "A587" then GetDOCTYPE = "Ercp Orders"
ElseIF GetDOCALIAS = "A588" then GetDOCTYPE = "Flex Sigmoidoscopy Orders"
ElseIF GetDOCALIAS = "A589" then GetDOCTYPE = "Peg Orders"
ElseIF GetDOCALIAS = "A590" then GetDOCTYPE = "Upper Endoscopy Orders"
END IF
End Function