While, do... repeat if - the best option?

Hi Everybody.

I’m using the code below to download some xml files, so the macro goes to the csv file and copy the information in the cell 1 then goes to to chrome and past and add to a queue… the csv can have 100, 200 lines, however the website allow me to add to the queue only 18 each time, how could Kantu add only 18 each time, then start from the next line (19) until the end of csv file? Tks!

{
“Name”: “12-Sub_pool-1”,
“CreationDate”: “2019-11-8”,
“Commands”: [
{
“Command”: “store”,
“Target”: “fast”,
“Value”: “!replayspeed”
},
{
“Command”: “csvRead”,
“Target”: “diextract.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": "comment", "Target": "{!csvReadLineNumber}+1",
“Value”: “!csvReadLineNumber”
},
{
“Command”: “type”,
“Target”: “id=nrDeclaracao”,
“Value”: “{!COL1}" }, { "Command": "click", "Target": "xpath=//*[@id=\"setaDir\"]/img", "Value": "" }, { "Command": "storeEval", "Target": "{!csvReadLineNumber}+1”,
“Value”: “!csvReadLineNumber”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorIgnore”
},
{
“Command”: “echo”,
“Target”: "Reading CSV line No. ${!csvReadLineNumber} ",
“Value”: “!errorIgnore”
},
{
“Command”: “csvRead”,
“Target”: “diextract.csv”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “false”,
“Value”: “!errorIgnore”
},
{
“Command”: “endWhile”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “name=enviar”,
“Value”: “”
},
{
“Command”: “waitForPageToLoad”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=ckTodos”,
“Value”: “on”
},
{
“Command”: “click”,
“Target”: “id=ckTodos”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “name=gerarXml”,
“Value”: “”
},
{
“Command”: “selectWindow”,
“Target”: “tab=0”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “id=voltarConsultarListaDi”,
“Value”: “”
}
]
}