Use promt, variable and more

Hello,

I have a question, i use the wile script to perform recurrent tasks.
Now i want to do the following. I start with a prompt to fill in a number and use it later as a variable.
I want to add up +1 everytime the script starts over. How can i perform this

If you want to keep variable values between macro runs you can use global variables.

Thnx for the reply, i posted the question twice :wink:
Below whast i used finaly.

{
“Name”: “testblock”,
“CreationDate”: “2019-4-24”,
“Commands”: [
{
“Command”: “prompt”,
“Target”: “Type hier de extensie”,
“Value”: “extension”
},
{
“Command”: “store”,
“Target”: “fast”,
“Value”: “!replayspeed”
},
{
“Command”: “comment”,
“Target”: “Onnet data”,
“Value”: “”
},
{
“Command”: “csvRead”,
“Target”: “onnet.csv”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Status = {!csvReadStatus}, line = {!csvReadLineNumber}”,
“Value”: “”
},
{
“Command”: “while”,
“Target”: “”{!csvReadStatus}\" == \"OK\"", "Value": "" }, { "Command": "echo", "Target": "status = {!csvReadStatus}, line = {!csvReadLineNumber}", "Value": "" }, { "Command": "echo", "Target": "Extensie = {extension}",
“Value”: “green”
},
{
“Command”: “comment”,
“Target”: “Na dit blok beginnen met bouwen”,
“Value”: “”
},
{
“Command”: “storeEval”,
“Target”: “{!csvReadLineNumber}+1", "Value": "!csvReadLineNumber" }, { "Command": "storeEval", "Target": "{extension}+1”,
“Value”: “extension”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorIgnore”
},
{
“Command”: “echo”,
“Target”: “Reading CSV line No. {!csvReadLineNumber} ", "Value": "!errorIgnore" }, { "Command": "echo", "Target": "Extensie = {extension}”,
“Value”: “Red”
},
{
“Command”: “csvRead”,
“Target”: “onnet.csv”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “false”,
“Value”: “!errorIgnore”
},
{
“Command”: “endWhile”,
“Target”: “”,
“Value”: “”
}
]
}