Step 11 — Extract Tip Number

The next thing we want to do is to insert a step that extracts the number of each tip.

Before we go on, click on the End step, so it becomes the active step (green).

You will see that the table row concerning the first tip has been surrounded by a blue rectangle. The blue rectangle marks the Current Tag.

A current Tag

In this scenario, the Current Tag is created by the loop to indicate which table row the loop is currently processing.

In order for the actions that you perform next to be repeated properly for each table row, it is important to always click inside the table row surrounded by the blue rectangle.

Action

In the Browser View, right click on the number (in the number column) inside the blue rectangle. A context menu will appear, select "Extract" | "Extract Number" | "Tip.number"

Extracting Tip Number

A dialog for extracting a number now appears. Check the Convert to Integer option.

Current Tag

Click OK to close the dialog. Have a look at the Variables View (in the lower right corner), where you can see the variables and the values of their attributes. You will now see that the number attribute of the tip variable, as expected, has the value 4.

If you click the navigation buttons on the loop step, you can change the current tag, and control what row is being processed. After inserting the extract step, it can be a good idea to test that the extraction you have performed also works as expected on the other table rows, including the last row.

Loop navigation

Before continuing the tutorial, you should use the loop navigation arrows to move the current tag back so that it selects the first table row.