I could see the issue is with the Logical operator in if condition you had used only one comparison operator , you need to use two comparison operators when you use logical operator.
If Trim(ret_res)= st_scode OR End_Hscode Then (this is ur code) It should be like this: If Trim(ret_res)= st_scode OR Trim(ret_res)=End_Hscode Then On 10 September 2015 at 09:23, serene Teddy Bear <[email protected]> wrote: > Hi , > > The ret_res = 1 > > The st_hscode =4 , end_hscode=5, why the condition is matched, they should > not, please explain, thanks > > Thank You > TeddyBear > > -- > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
