I’m throwing CsvReadMaxRow into Store.
I’m trying to read and print the value in the last line of the CSV using the variable in the Store, and at this time I get the error “[echo] undefined”.
How can I use the CsvReadMaxRow value correctly. Can you help me?
NOTE: Array is one-dimensional
{
“Command”: “csvReadArray”,
“Target”: “mycsv.csv”,
“Value”: “myCSV”
},
{
“Command”: “store”,
“Target”: “${!CsvReadMaxRow}”,
“Value”: “lastline”
},
{
“Command”: “echo”,
“Target”: “LastLine: ${lastline}”,
“Value”: “red”
},
{
“Command”: “echo”,
“Target”: “${myCSV[${lastline}]}”,
“Value”: “red”,
}