I updated the IBM RPA to 21.0.7, I tried to run below code
evaluate --expression "98-36" startPos=value
The value of startPos will not be 62, it still be 98-36.
Here is part of the code I have used. ${nameLen} is 98, the result startPos is 98-36 too.
defVar --name nameLen --type Numeric
defVar --name nameOnlyLen --type Numeric
setVar --name "${nameLen}" --value "${DailyReportFilename.Length}"
setVar --name "${nameOnlyLen}" --value 36
evaluate --expression "${nameLen}-${nameOnlyLen}" startPos=value
The evaluate works in 21.0.4 that I had ever used.
evaluate --expression "
${filePath.Length}-
${fileName.Length}" folderLength=value
-------------
Is this is bug?
------------------------------
Yan Hai Zhao
------------------------------