Hi,
Unfortunately, Vb or C# doesn’t have a function like eval(), we need to approach by other ways.
● DataTable.Compute method
strExpression = "((10-5)*(2+2))*5"
dt = New DataTable()
Then
dt.Compute(strExpression, "").ToString
● Inject JS script activity
strExpression = "((10-5)*(2+2))*5"
Inject JS Script activity
Indicate an element in any browser.
Input Parameter : strExpression
ScriptCode
"function(e,v) {
return eval(v);
}"
ScriptOutput : strResult
●Use 3rd party library.
Perhaps we can find .net library for it in nuget feed.
Hope this helps you.
Regards,