GoTo and Flag

The GoTo component transfers the automation control directly to a labeled statement or Flag component.

The Flag component allows the user to initiate any transferred automation control from the GoTo component.

Screenshot

Ports

The GoTo component exposes Control In and Data In ports and Flag component exposes Control Out and Data Out ports by default.

Port Description
ControlIn Must be connected to the Control Out port of one or more components.
Control Out Must be connected to the Control In port of any other component.
Data In Must be connected from a Data Out port of any component.
Data Out Must be connected to a Data in port of any component.
###Properties

To edit the properties of the GoTo and Flag component, in the lower-right pane, edit the required property. Users can edit the following properties:

Property Description
Delay After Execution Specifies the wait time (in seconds) after the action is executed.
Delay Before Execution Specifies the wait time (in seconds) before the action is executed.
Name Specifies the name to identify the component. Set the name to match the application field to be interacted with.
Data In(GoTo) Specifies the text
Data Out(Flag) Returns the extracted data from GoTo

Example

Let us consider an example using GoTo and Flag Component.

Screenshot

To use the GoTo and Flag components in this example:

  1. In the Toolbox, expand General.
  2. Drag the GoTo and Flag components and drop it on the design surface.
  3. In the Flag component, double click on unnamed flag and name the Flag component.
  4. In the GoTo component, double click on unmapped and select the specific Flag.

    Screenshot

  5. To add the Variable component:

    • In the Toolbox, expand General.
    • Drag the Variable component and drop it on the design surface.
    • Double-click the Variable component, and enter the input variable value by double clicking on text box available under Name.
  6. To add the Expression component.

    • In the Toolbox, expand General.
    • Drag the Expression Component and drop it on the design surface.
    • Click on the edit text box, enter the arithmetic expression. In this example, a simple expression i+j is shown.
    • A Data In port is dynamically created with the name of the variables provided in the expressions text box.
  7. To add input value the variable component has to be added.

  8. Add a Message Box Show component to display output of the arithmetic expression in the expressions component.

  9. To add the Message Box Show component:

    • In the Toolbox, expand General.
    • Expand the MessageBox component, drag Show component and drop it on the Design surface.
  10. Connect:
    The control ports of all components.

    • The Control Out ports of the Variable component to the Control In ports of the respective Expressions component.
    • The Data Out ports of the Variable component to the Data In ports of the respective Expressions component.
    • The Control Out port of the Expressions component to the Control In port of its GoTo component.
    • The Control Out port of the Flag component to the Control In port of its MessageBox component.
  11. In the toolbar, click Run.

    Screenshot