Support

How to use If statements

8/22/07

Applies to:  FoxtrotOne

 

 

Summary

How to use the IF statements. There are two different IF statements in FoxtrotOne. Non-interactive and Interactive IF statements. Non-interactive IF statements are used when the user wants to compare two values and take action on the outcome. Interactive IF statements are used when the user wants to see if a target appears on the screen or not. Below are two examples.

 

Examples

Non-interactive IF statements:

In this scenario the user is determining if the copied address from the website matches the address in the data base.

Note: This scenario presumes that a data base is loaded into FoxtrotOne that has an address field and a variable contains the address that was copied from the website.

 

Non-Int-If-state1.jpg 

 

Interactive IF statements:

This scenario describes how to use an interactive IF statement when an error message appears on the screen.

First you have to drag the selector tool to a main identifier of the error.

 Selector-tool.jpg 

Then select the If action on the left of the Actions list.

 Int-If-state1.jpg

In the options section select If ‘the target’ and for the option below in this scenario states ‘is found’ At this time you can click OK. Then you will want to re-target a button on the screen that will resolve the error, in this case the Go button on the screen and select click. You will notice the click action on the script is indented. This means that if the target is not found the click action will not be executed.

Click-action1.jpg 

Indented action item:

Script-example.gif

 

 

Reminder

If statements can be imbedded within other If statements. If you have any questions email support@enablesoft.com

 

arrowReturn to All Support Articles

 
In This Section:
Article Search:
Please enter the phrase or keyword you wish to search for:

  
    
Automation Software and ServicesData Migration Case StudiesData Scripting Blog by EnableSoftAbout EnableSoftContact EnableSoft
What is Foxtrot?Who Needs Foxtrot?Why Use Foxtrot?
Data Management Software Support Contact Enablesoft