08-27-2008, 05:56 PM
Is there a way in QTP to use an if-statement and if the if-statement is true have a command to tell the script to pass if it is false have a command to tell the script to fail. The closest I could come up with was to use a message box? Thanks for the Help
Code:
If (QT = RXDaysSupply) THEN
MSGBOX "The Days Supply is Correctly Calculated at " & RXDaysSupply
Else
MSGBOX "The Days Supply is Wrong at " & RXDaysSupply
End If