Syntax of Logical 'Or' operator in QTP
I want to check below condition in my script . Please help me
I have a variable c50 for which value will be ''nm" or say 'not set' . how I can check this condition with 'OR' operator and write to reporter event. I want to write saying if c50 value is 'nm' or 'not set" pass the script I have below code in my script and please let me know the correct format
var_c50= findVariableValueInCharles(myJavaTable,"c50", "Var c50 found", "Var c50 not found")
If var_c50="nm" &"|" & "not set" then
Reporter.ReportEvent micPass, "variable c50 is correct", " Passed..."
Reporter.ReportEvent micFail, "variable c50 is not correct", " Failed..."
If c50 = "nm" or c50 = "not set" then
Thanks a lot for the help ! It worked
Parenthesis make it easier to read my own code when I return in the future.
If (c50 = "nm") or (c50 = "not set") then