I use the command prompt to enter values.
Everything works fine when I enter the value StartLine = 2 & EndLine = 9.
There were no errors when I entered the values above
BUT
If I enter the values StartLine = 2 & Endline = 12
The error occurred because I entered a 2 digit value into EndLine.
Is this a bug? or is there something wrong with the source code that I created?
this my source code
{
"Name": "Example",
"CreationDate": "2024-3-25",
"Commands": [
{
"Command": "comment",
"Target": "UI Input User",
"Value": "",
"Description": ""
},
{
"Command": "prompt",
"Target": "Enter First Line",
"Value": "StartLine",
"Description": ""
},
{
"Command": "prompt",
"Target": "Enter Last Line",
"Value": "EndLine",
"Description": ""
},
{
"Command": "echo",
"Target": "First = ${Startline} & Last = ${EndLine}",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "Setting Data",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "${StartLine}",
"Value": "!csvReadLineNumber",
"Description": ""
},
{
"Command": "csvRead",
"Target": "data.csv",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "Status = ${!csvReadStatus}, line = ${!csvReadLineNumber}, end = ${EndLine}",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "Looping Condition",
"Value": "",
"Description": ""
},
{
"Command": "while_v2",
"Target": "${!csvReadLineNumber} <= ${EndLine}",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "${!csvReadLineNumber}",
"Value": "green",
"Description": ""
},
{
"Command": "comment",
"Target": "OPEN URL",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "true",
"Value": "!errorignore",
"Description": ""
},
{
"Command": "open",
"Target": "https://www.google.com",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "60",
"Value": "!TIMEOUT_WAIT",
"Description": ""
},
{
"Command": "comment",
"Target": "My Data XXXXX",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "Return",
"Value": "",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number(${!csvReadLineNumber})+1",
"Value": "!csvReadLineNumber",
"Description": ""
},
{
"Command": "store",
"Target": "true",
"Value": "!errorIgnore",
"Description": ""
},
{
"Command": "echo",
"Target": "Reading CSV line No. ${!csvReadLineNumber} ",
"Value": "!errorIgnore",
"Description": ""
},
{
"Command": "csvRead",
"Target": "pavingolxumum.csv",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "END OF DATA",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "false",
"Value": "!errorIgnore",
"Description": ""
},
{
"Command": "open",
"Target": "https://www.instagram.com",
"Value": "",
"Description": ""
}
]
}