Give me the code for multiply a variable with 1000. Thank you so much
{
"Name": "MultiplyVariable",
"CreationDate": "2025-08-22",
"Commands": [
{
"Command": "store",
"Target": "5",
"Value": "myVar"
},
{
"Command": "executeScript",
"Target": "return ${myVar} * 1000;",
"Value": "result"
},
{
"Command": "echo",
"Target": "Result is: ${result}",
"Value": ""
}
]
}
I extract number from a web. your formula can’t return the number, its null.
Here is my code
CafeF-Indices-crawl.json (3.7 KB)
CafeF-Indices-crawl.json (3.7 KB)
sorry. its still null. If crawled value has , in thousands split, the formula doesnt work. I run with the other elements
I think there is a typo and there is a semicolan after the * 1000 that needs removing, so breaks and value2 null.
Not:
{
"Command": "executeScript",
"Target": "return Number (${value1}) * 1000;",
"Value": "value2",
"Description": ""
},
But:
{
"Command": "executeScript",
"Target": "return Number (${value1}) * 1000",
"Value": "value2",
"Description": ""
},
I cannot run macro
you can share value which needs to be multiplied
I will edit code
{
“Name”: “CafeF-Indices-crawl-multiply”,
“CreationDate”: “2025-9-17”,
“Commands”: [
{
“Command”: “store”,
“Target”: “nodisplay”,
“Value”: “!replayspeed”,
“Description”: “”
},
{
“Command”: “echo”,
“Target”: “— Begin count ticker volume —”,
“Value”: “green”,
“Description”: “”
},
{
“Command”: “openBrowser”,
“Target”: “Error,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “3000”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[1]/div[4]/div/div/div/div[1]/div/form/div[2]/div[2]/input[2]”,
“Value”: “VN-Index”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=/html/body/div[1]/div[4]/div/div/div/div[1]/div/form/div[2]/div[4]/button[1]”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “2000”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “storeText”,
“Target”: “xpath=//*[@id=“price-history-table”]/tbody/tr[1]/td[13]”,
“Value”: “value1”,
“Description”: “”
},
{
“Command”: “echo”,
“Target”: “${value1}”,
“Value”: “green”,
“Description”: “”
},
{
“Command”: “executeScript”,
“Target”: “return Number ((${value1})*1000000000)”,
“Value”: “value2”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “${value2}”,
“Value”: “!csvLine”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “2000”,
“Value”: “!csvLine”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “50”,
“Value”: “!csvLine”,
“Description”: “”
},
{
“Command”: “csvSave”,
“Target”: “Trading-Indices.csv”,
“Value”: “”,
“Description”: “”
}
]
}
Here my code
Command”: “echo”,“Target”: “${value1}”,“Value”: “green”,“Description”:
what is the output ?
{
“Command”: “storeText”,
“Target”: “xpath=//*[@id=“price-history-table”]/tbody/tr[1]/td[13]”,
“Value”: “value1”,
“Description”: “”
},
hi. is there anyone can help me please
hi. is there anyone can help me please