Forum Discussion

heidi_n's avatar
heidi_n
Regular Contributor
12 years ago

If Then Videos?

Are there any videos that cover If Then statements in keyword tests? If not, I will try the help documentation, but I find the videos easier to learn from.

3 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    If Then seems to have the most flexibility.  We use it the most, because If Object doesn't always allow for the comparison we need to use.  



    In my attached example, we used If Then and Else to first see if the message box was there, then check for the actual message to see if it was the one we were expecting.



    You might not always have an Else condition, so you can use If Then alone, but if you need something specific to happen when the If condition is false, use Else to cover that.



  • heidi_n's avatar
    heidi_n
    Regular Contributor
    Also, what is the difference between If Object, If Then, and If Then Else? 
  • heidi_n's avatar
    heidi_n
    Regular Contributor
    Basically, I'm trying to say "If you get an optional pop up, click yes on the pop up to continue. If you do not get the pop up, continue as planned..."