How to dynamically update the text filed value when playing a macro

Scope:

I need to loop a macro. The macro consists of an email field so, I need to dynamically update this email address each time the macro plays.

For example, let’s say my email address is myemailaddress@gmail. While looping this address needs to be updated like myemailaddress+1@gmail, myemailaddress+2@gmail and so on

Macro sample:


{
      "Command": "click",
      "Target": "id=keyword2",
      "Value": "",
      "Targets": [
        "id=keyword2",
        "name=email",
        "xpath=//*[@id=\"keyword2\"]",
        "xpath=//input[@id='keyword2']",
        "xpath=//div[2]/div/div/input",
        "css=#keyword2"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "id=keyword2",
      "Value": "myemailaddress@gmail.com",
      "Targets": [
        "id=keyword2",
        "name=email",
        "xpath=//*[@id=\"keyword2\"]",
        "xpath=//input[@id='keyword2']",
        "xpath=//div[2]/div/div/input",
        "css=#keyword2"
      ]

Add a variable in the text e. g.

change

"Value": "myemailaddress@gmail.com",

to

"Value": "myemailaddress${!loop}@gmail.com",